@ -50,11 +50,26 @@ helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
ips : function ( next ) {
ips : function ( next ) {
user . getIPs ( uid , 4 , next ) ;
user . getIPs ( uid , 4 , next ) ;
} ,
} ,
profile _links : function ( next ) {
profile _links : function ( next ) { // DEPRECATED, do not use
plugins . fireHook ( 'filter:user.profileLinks' , [ ] , 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 ) ;
plugins . fireHook ( 'filter:user.profileMenu' , {
uid : uid ,
callerUID : callerUID ,
links : [ {
id : 'info' ,
route : 'info' ,
name : '[[user:account_info]]' ,
visibility : {
self : false ,
other : false ,
moderator : true ,
globalMod : true ,
admin : true ,
} ,
} ] ,
} , next ) ;
} ,
} ,
groups : function ( next ) {
groups : function ( next ) {
groups . getUserGroups ( [ uid ] , next ) ;
groups . getUserGroups ( [ uid ] , next ) ;