mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-18 20:47:33 +01:00
refactor: shorter hook
This commit is contained in:
@@ -80,7 +80,7 @@ module.exports = function (Topics) {
|
||||
return tidToPost[topic.tid];
|
||||
});
|
||||
|
||||
const result = await plugins.hooks.fire('filter:teasers.get', { teasers: teasers, uid: uid });
|
||||
const result = await plugins.hooks.fire('filter:teasers.get', { teasers, uid });
|
||||
return result.teasers;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user