Skip to content

Node.js based forum software built for the modern web

feat: add filter:flags.getFlagIdsWithFilters

Barış Soner Uşaklıd35c64b1a26a
diff --git a/src/flags.js b/src/flags.js
index 0d20815756..a25f3e1c7b 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -167,7 +167,12 @@ Flags.getFlagIdsWithFilters = async function ({ filters, uid }) {
}
}
- return flagIds;
+ const result = await plugins.hooks.fire('filter:flags.getFlagIdsWithFilters', {
+ filters,
+ uid,
+ flagIds,
+ });
+ return result.flagIds;
};
Flags.list = async function (data) {