mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
inf scroll changes
dont load main post if start > 0
This commit is contained in:
@@ -266,7 +266,7 @@ var async = require('async'),
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
if (topic.mainPid) {
|
||||
if (topic.mainPid && start === 0) {
|
||||
pids.unshift(topic.mainPid);
|
||||
}
|
||||
posts.getPostsByPids(pids, uid, next);
|
||||
@@ -276,7 +276,7 @@ var async = require('async'),
|
||||
return next(null, []);
|
||||
}
|
||||
var replies = posts;
|
||||
if (topic.mainPid) {
|
||||
if (topic.mainPid && start === 0) {
|
||||
posts[0].index = 0;
|
||||
replies = posts.slice(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user