Skip to content

Node.js based forum software built for the modern web

closes #6549

Barış Soner Uşaklı0b0ce1df8a3f
diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js
index 4dfc7855b8..f2f418a52f 100644
--- a/src/controllers/accounts/helpers.js
+++ b/src/controllers/accounts/helpers.js
@@ -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,
diff --git a/src/plugins/hooks.js b/src/plugins/hooks.js
index 2fd93ef4dd..99c7408e0c 100644
--- a/src/plugins/hooks.js
+++ b/src/plugins/hooks.js
@@ -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',