mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
Topic await errors (#7727)
* feat: derp await * feat: restore user.getSettings * feat: cleanup * feat: make tid const * feat: cleanup * fix: tests * feat: deprecate filter:controllers.topic.get * feat: rewrite post-index logic * feat: change calculation to match others * fix: use .async * feat: remove try/catch wrapper
This commit is contained in:
committed by
GitHub
parent
5e46cf9b09
commit
bd640a1107
@@ -246,7 +246,7 @@ function getMainPostAndReplies(topic, set, uid, start, stop, reverse, callback)
|
||||
replies = posts.slice(1);
|
||||
}
|
||||
|
||||
Topics.calculatePostIndices(replies, start, topic.postcount, reverse);
|
||||
Topics.calculatePostIndices(replies, start);
|
||||
|
||||
Topics.addPostData(posts, uid, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user