mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
isMainPost for post summary
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = function(Posts) {
|
||||
|
||||
for (var i=0; i<posts.length; ++i) {
|
||||
posts[i].index = utils.isNumber(results.indices[i]) ? parseInt(results.indices[i], 10) + 1 : 1;
|
||||
posts[i].isMainPost = posts[i].index - 1 === 0;
|
||||
}
|
||||
|
||||
posts = posts.filter(function(post) {
|
||||
|
||||
Reference in New Issue
Block a user