mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: lint
This commit is contained in:
@@ -361,7 +361,6 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => {
|
||||
method = db.getSortedSetRange;
|
||||
}
|
||||
const count = await db.sortedSetCard(set);
|
||||
// const { cid, titleRaw: name, mainPid, slug, postcount: count } = await topics.getTopicFields(req.params.tid, ['cid', 'title', 'mainPid', 'slug', 'postcount']);
|
||||
const pageCount = Math.max(1, Math.ceil(count / perPage));
|
||||
let items;
|
||||
let paginate = true;
|
||||
|
||||
@@ -85,12 +85,12 @@ Actors.replies = async function (req, res) {
|
||||
id: `${nconf.get('url')}/post/${req.params.pid}/replies${replies.orderedItems && page ? `?page=${page}` : ''}`,
|
||||
url: `${nconf.get('url')}/post/${req.params.pid}`,
|
||||
...replies,
|
||||
}
|
||||
};
|
||||
|
||||
res.status(200).json(object);
|
||||
};
|
||||
|
||||
Actors.topic = async function (req, res, next) {
|
||||
Actors.topic = async function (req, res) {
|
||||
const allowed = await privileges.topics.can('topics:read', req.params.tid, activitypub._constants.uid);
|
||||
if (!allowed) {
|
||||
return res.sendStatus(404);
|
||||
|
||||
Reference in New Issue
Block a user