mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
closes #2967
@barisusakli there was a return; if user is offline, don't see any reason why it should be so I removed it, just FYI
This commit is contained in:
@@ -29,9 +29,9 @@ SocketUser.deleteAccount = function(socket, data, callback) {
|
||||
if (err || isAdmin) {
|
||||
return callback(err || new Error('[[error:cant-delete-admin]]'));
|
||||
}
|
||||
|
||||
user.deleteAccount(socket.uid, callback);
|
||||
|
||||
socket.broadcast.emit('event:user_status_change', {uid: socket.uid, status: 'offline'});
|
||||
user.deleteAccount(socket.uid, callback);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user