mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fixing #1587 properly for unread count
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user