mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
reverse infinite loading
This commit is contained in:
@@ -230,7 +230,7 @@ SocketTopics.follow = function(socket, tid, callback) {
|
||||
};
|
||||
|
||||
SocketTopics.loadMore = function(socket, data, callback) {
|
||||
if(!data || !data.tid || !data.after) {
|
||||
if(!data || !data.tid || !(parseInt(data.after, 10) >= 0)) {
|
||||
return callback(new Error('invalid data'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user