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:
Barış Soner Uşaklı
2021-10-31 15:09:33 -04:00
parent a7f235dbac
commit 89399c0ed5
3 changed files with 19 additions and 1 deletions

View File

@@ -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);
};