mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
style changes
This commit is contained in:
@@ -197,17 +197,18 @@ SocketUser.unfollow = function (socket, data, callback) {
|
||||
};
|
||||
|
||||
function toggleFollow(method, uid, theiruid, callback) {
|
||||
user[method](uid, theiruid, function (err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
plugins.fireHook('action:user.' + method, {
|
||||
fromUid: uid,
|
||||
toUid: theiruid,
|
||||
});
|
||||
callback();
|
||||
});
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
user[method](uid, theiruid, next);
|
||||
},
|
||||
function (next) {
|
||||
plugins.fireHook('action:user.' + method, {
|
||||
fromUid: uid,
|
||||
toUid: theiruid,
|
||||
});
|
||||
next();
|
||||
},
|
||||
], callback);
|
||||
}
|
||||
|
||||
SocketUser.saveSettings = function (socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user