Skip to content

Node.js based forum software built for the modern web

fix: lint

Julian Lamb0eec67d783b
diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js
index 17dd233228..b3d1b8fb0d 100644
--- a/src/activitypub/helpers.js
+++ b/src/activitypub/helpers.js
@@ -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;
diff --git a/src/controllers/activitypub/actors.js b/src/controllers/activitypub/actors.js
index 4c9326eb09..5349ecc5e1 100644
--- a/src/controllers/activitypub/actors.js
+++ b/src/controllers/activitypub/actors.js
@@ -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);