mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
closes #1427
flag and chat buttons are hidden on self posts, updated in vanilla and lavender
This commit is contained in:
@@ -162,7 +162,7 @@ SocketModules.chats.send = function(socket, data, callback) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
var touid = data.touid;
|
||||
var touid = parseInt(data.touid, 10);
|
||||
if (touid === socket.uid || socket.uid === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user