This commit is contained in:
Spiritlebon
2014-10-12 03:36:38 +02:00
parent 2c95d8d82e
commit 35fc175ff6
3 changed files with 3 additions and 3 deletions

View File

@@ -404,7 +404,7 @@ SocketTopics.follow = function(socket, tid, callback) {
}; };
SocketTopics.loadMore = function(socket, data, callback) { SocketTopics.loadMore = function(socket, data, callback) {
if(!data || !data.tid || !(parseInt(data.after, 10) >= 0)) { if(!data || !data.tid || (parseInt(data.after, 10) < 0)) {
return callback(new Error('[[error:invalid-data]]')); return callback(new Error('[[error:invalid-data]]'));
} }

View File

@@ -1,4 +1,4 @@
"use strict"; "use strict";
var db = require('./database'), var db = require('./database'),
async = require('async'), async = require('async'),