mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #6549
This commit is contained in:
@@ -50,9 +50,6 @@ helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
|
||||
ips: function (next) {
|
||||
user.getIPs(uid, 4, next);
|
||||
},
|
||||
profile_links: function (next) { // DEPRECATED, do not use
|
||||
plugins.fireHook('filter:user.profileLinks', [], next);
|
||||
},
|
||||
profile_menu: function (next) {
|
||||
plugins.fireHook('filter:user.profileMenu', {
|
||||
uid: uid,
|
||||
@@ -152,7 +149,7 @@ helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
|
||||
userData['reputation:disabled'] = parseInt(meta.config['reputation:disabled'], 10) === 1;
|
||||
userData['downvote:disabled'] = parseInt(meta.config['downvote:disabled'], 10) === 1;
|
||||
userData['email:confirmed'] = !!parseInt(userData['email:confirmed'], 10);
|
||||
userData.profile_links = filterLinks(results.profile_links.concat(results.profile_menu.links), {
|
||||
userData.profile_links = filterLinks(results.profile_menu.links, {
|
||||
self: isSelf,
|
||||
other: !isSelf,
|
||||
moderator: isModerator,
|
||||
|
||||
@@ -5,7 +5,6 @@ var async = require('async');
|
||||
|
||||
module.exports = function (Plugins) {
|
||||
Plugins.deprecatedHooks = {
|
||||
'filter:user.profileLinks': 'filter:user.profileMenu',
|
||||
'action:post.flag': 'action:flag.create',
|
||||
'action:flag.create': 'action:flags.create',
|
||||
'action:flag.update': 'action:flags.update',
|
||||
|
||||
Reference in New Issue
Block a user