mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
closes #5140
This commit is contained in:
@@ -367,6 +367,10 @@ var userNotifications = require('./user/notifications');
|
||||
return callback(new Error('[[error:chat-disabled]]'));
|
||||
}
|
||||
|
||||
if (parseInt(uid, 10) === parseInt(toUid, 10)) {
|
||||
return callback(new Error('[[error:cant-chat-with-yourself'));
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
user.exists(toUid, next);
|
||||
|
||||
Reference in New Issue
Block a user