mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
misc fixes
handle spider uids properly
This commit is contained in:
@@ -35,7 +35,7 @@ Posts.exists = function (pid, callback) {
|
||||
|
||||
Posts.getPidsFromSet = function (set, start, stop, reverse, callback) {
|
||||
if (isNaN(start) || isNaN(stop)) {
|
||||
return callback(null, []);
|
||||
return setImmediate(callback, null, []);
|
||||
}
|
||||
db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user