refactor: shorter hook

This commit is contained in:
Barış Soner Uşaklı
2026-02-16 12:04:11 -05:00
parent ec8e547cfe
commit a8a85bcb0b

View File

@@ -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;
};