Skip to content

Node.js based forum software built for the modern web

feat: added filter:tags.getAll plugin hook

Julian Lam66aa443b7a2d
diff --git a/src/topics/tags.js b/src/topics/tags.js
index 96dc21ea87..041d45c523 100644
--- a/src/topics/tags.js
+++ b/src/topics/tags.js
@@ -129,7 +129,10 @@ module.exports = function (Topics) {
Topics.getTags = async function (start, stop) {
const tags = await db.getSortedSetRevRangeWithScores('tags:topic:count', start, stop);
- return await Topics.getTagData(tags);
+ const payload = await plugins.fireHook('filter:tags.getAll', {
+ tags: tags,
+ });
+ return await Topics.getTagData(payload.tags);
};
Topics.getTagData = async function (tags) {