Merge remote-tracking branch 'origin/0.5.1' into topic_searching

v1.18.x
Julian Lam 11 years ago
commit df5283cbae

@ -367,4 +367,8 @@ SocketPosts.getCategory = function(socket, pid, callback) {
posts.getCidByPid(pid, callback); posts.getCidByPid(pid, callback);
}; };
SocketPosts.getPidIndex = function(socket, pid, callback) {
posts.getPidIndex(pid, socket.uid, callback);
};
module.exports = SocketPosts; module.exports = SocketPosts;

@ -254,7 +254,7 @@ var async = require('async'),
} }
notifications = notifications.filter(function(notification) { notifications = notifications.filter(function(notification) {
return !!notification || notification[field] !== value.toString(); return notification && notification[field] !== value.toString();
}).map(function(notification) { }).map(function(notification) {
return notification.nid; return notification.nid;
}); });

Loading…
Cancel
Save