mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
removing dupe main post from posts array in topic noscript
This commit is contained in:
@@ -235,8 +235,7 @@ var express = require('express'),
|
||||
});
|
||||
},
|
||||
function(topicData, next) {
|
||||
var posts = topicData.posts.push(topicData.main_posts[0]),
|
||||
lastMod = 0,
|
||||
var lastMod = 0,
|
||||
timestamp;
|
||||
|
||||
for(var x=0,numPosts=topicData.posts.length;x<numPosts;x++) {
|
||||
|
||||
Reference in New Issue
Block a user