fix: incorrect posts url in topic posts collection

This commit is contained in:
Julian Lam
2025-01-21 13:01:27 -05:00
parent 4fd7a9dc59
commit 812ec73ed7

View File

@@ -168,7 +168,7 @@ Actors.topicPosts = async function (req, res, next) {
method: posts.getPidsFromSet, method: posts.getPidsFromSet,
page, page,
perPage, 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`), db.getSortedSetMembers(`tid:${req.params.tid}:posts`),
]); ]);