mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
uid fixes
This commit is contained in:
@@ -381,7 +381,7 @@ SocketModules.chats.getRecentChats = function (socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketModules.chats.hasPrivateChat = function (socket, uid, callback) {
|
||||
if (!socket.uid || !uid) {
|
||||
if (socket.uid <= 0 || uid <= 0) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
Messaging.hasPrivateChat(socket.uid, uid, callback);
|
||||
|
||||
Reference in New Issue
Block a user