fix: incorrect posts url in topic posts collection

This commit is contained in:
Julian Lam
2025-01-21 13:01:27 -05:00
parent adeaff4b82
commit b2530e6122

View File

@@ -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`),
]);