flag and chat buttons are hidden on self posts, updated in vanilla and
lavender
This commit is contained in:
barisusakli
2014-04-23 21:47:51 -04:00
parent 3ca45fa061
commit cf94a71499
3 changed files with 3 additions and 1 deletions

View File

@@ -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;
}