fixing #1587 properly for unread count

This commit is contained in:
psychobunny
2014-05-28 18:20:02 -04:00
parent 08bbf7fdd8
commit 791fde7904
4 changed files with 8 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ SocketUser.emailExists = function(socket, data, callback) {
SocketUser.increaseViewCount = function(socket, uid, callback) {
if (uid) {
if (socket.uid !== parseInt(uid, 10)) {
user.incrementUserFieldBy(uid, 'profileviews', 1);
user.incrementUserFieldBy(uid, 'profileviews', 1, callback);
}
}
};