mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
Fix space-before-function-paren linter rule
This commit is contained in:
@@ -13,7 +13,7 @@ var utils = require('../../../public/src/utils');
|
||||
|
||||
var helpers = {};
|
||||
|
||||
helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
|
||||
helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
user.getUidByUserslug(userslug, next);
|
||||
@@ -24,34 +24,34 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
|
||||
}
|
||||
|
||||
async.parallel({
|
||||
userData : function(next) {
|
||||
userData : function (next) {
|
||||
user.getUserData(uid, next);
|
||||
},
|
||||
userSettings : function(next) {
|
||||
userSettings : function (next) {
|
||||
user.getSettings(uid, next);
|
||||
},
|
||||
isAdmin : function(next) {
|
||||
isAdmin : function (next) {
|
||||
user.isAdministrator(callerUID, next);
|
||||
},
|
||||
isGlobalModerator: function(next) {
|
||||
isGlobalModerator: function (next) {
|
||||
user.isGlobalModerator(callerUID, next);
|
||||
},
|
||||
isFollowing: function(next) {
|
||||
isFollowing: function (next) {
|
||||
user.isFollowing(callerUID, uid, next);
|
||||
},
|
||||
ips: function(next) {
|
||||
ips: function (next) {
|
||||
user.getIPs(uid, 4, next);
|
||||
},
|
||||
profile_links: function(next) {
|
||||
profile_links: function (next) {
|
||||
plugins.fireHook('filter:user.profileLinks', [], next);
|
||||
},
|
||||
profile_menu: function(next) {
|
||||
profile_menu: function (next) {
|
||||
plugins.fireHook('filter:user.profileMenu', {uid: uid, callerUID: callerUID, links: []}, next);
|
||||
},
|
||||
groups: function(next) {
|
||||
groups: function (next) {
|
||||
groups.getUserGroups([uid], next);
|
||||
},
|
||||
sso: function(next) {
|
||||
sso: function (next) {
|
||||
plugins.fireHook('filter:auth.list', {uid: uid, associations: []}, next);
|
||||
}
|
||||
}, next);
|
||||
@@ -137,13 +137,13 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
|
||||
};
|
||||
|
||||
|
||||
helpers.getBaseUser = function(userslug, callerUID, callback) {
|
||||
helpers.getBaseUser = function (userslug, callerUID, callback) {
|
||||
winston.warn('helpers.getBaseUser deprecated please use helpers.getUserDataByUserSlug');
|
||||
helpers.getUserDataByUserSlug(userslug, callerUID, callback);
|
||||
};
|
||||
|
||||
function filterLinks(links, self) {
|
||||
return links.filter(function(link) {
|
||||
return links.filter(function (link) {
|
||||
return link && (link.public || self);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user