mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -24,7 +24,7 @@ social.getPostSharing = async function () {
|
||||
class: 'fa-twitter',
|
||||
},
|
||||
];
|
||||
networks = await plugins.fireHook('filter:social.posts', networks);
|
||||
networks = await plugins.hooks.fire('filter:social.posts', networks);
|
||||
const activated = await db.getSetMembers('social:posts.activated');
|
||||
networks.forEach(function (network) {
|
||||
network.activated = activated.includes(network.id);
|
||||
|
||||
Reference in New Issue
Block a user