mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 19:11:22 +01:00
refactor: shorter hook
This commit is contained in:
@@ -80,7 +80,7 @@ module.exports = function (Topics) {
|
|||||||
return tidToPost[topic.tid];
|
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;
|
return result.teasers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user