Skip to content

Node.js based forum software built for the modern web

refactor: shorter hook

Barış Soner Uşaklıa8a85bcb0b78
diff --git a/src/topics/teaser.js b/src/topics/teaser.js
index f729afb4ec..03ea62b5c0 100644
--- a/src/topics/teaser.js
+++ b/src/topics/teaser.js
@@ -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;
};