Skip to content

Node.js based forum software built for the modern web

fix: incorrect `posts` url in topic posts collection

Julian Lamb2530e612286
diff --git a/src/controllers/activitypub/actors.js b/src/controllers/activitypub/actors.js
index 7b05938c80..ca92cee5f0 100644
--- a/src/controllers/activitypub/actors.js
+++ b/src/controllers/activitypub/actors.js
@@ -168,7 +168,7 @@ Actors.topicPosts = async function (req, res, next) {
method: posts.getPidsFromSet,
page,
perPage,
- url: `${nconf.get('url')}/topic/${req.params.tid}`,
+ url: `${nconf.get('url')}/topic/${req.params.tid}/posts`,
}),
db.getSortedSetMembers(`tid:${req.params.tid}:posts`),
]);