From d78fdb152074514cb9e84db51e4f0f6ffcf8fa75 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 17 Jul 2014 22:26:50 -0400 Subject: [PATCH] more confusing, works perfectably --- src/socket.io/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index 08ec4644ab..6dd0ef3168 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -324,7 +324,7 @@ SocketTopics.follow = function(socket, tid, 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]]')); }