mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
dont update last online time if status is offline
This commit is contained in:
@@ -139,7 +139,7 @@ Sockets.init = function(server) {
|
||||
|
||||
function callMethod(method) {
|
||||
if(socket.uid) {
|
||||
user.setUserField(socket.uid, 'lastonline', Date.now());
|
||||
user.updateLastOnlineTime(socket.uid);
|
||||
}
|
||||
|
||||
method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) {
|
||||
|
||||
Reference in New Issue
Block a user