mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fix: #9954, get next post timestamp
fixes topic events being inserted in after first page but at the wrong spot
This commit is contained in:
@@ -24,6 +24,7 @@ module.exports = function (Topics) {
|
||||
const postData = await posts.getPostsFromSet(set, start, stop, uid, reverse);
|
||||
Topics.calculatePostIndices(postData, start);
|
||||
|
||||
await Topics.addNextPostTimestamp(postData, set, reverse);
|
||||
return await Topics.addPostData(postData, uid);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user