mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
added error key
This commit is contained in:
@@ -13,7 +13,7 @@ SocketCategories.getRecentReplies = function(socket, cid, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (privileges && !privileges.read) {
|
||||
if (!privileges || !privileges.read) {
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ SocketCategories.get = function(socket, data, callback) {
|
||||
|
||||
SocketCategories.loadMore = function(socket, data, callback) {
|
||||
if(!data) {
|
||||
return callback(new Error('invalid data'));
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
user.getSettings(socket.uid, function(err, settings) {
|
||||
|
||||
Reference in New Issue
Block a user