v1.18.x
Barış Soner Uşaklı 7 years ago
parent 25ebd306cc
commit 0b0ce1df8a

@ -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',

Loading…
Cancel
Save