Node.js based forum software built for the modern web
fix: #9976
Barış Soner Uşaklı28dd31a8e705
diff --git a/src/topics/index.js b/src/topics/index.jsindex 06a6879c6c..67614927ae 100644--- a/src/topics/index.js+++ b/src/topics/index.js@@ -319,11 +319,12 @@ Topics.isLocked = async function (tid) {};Topics.search = async function (tid, term) {- const pids = await plugins.hooks.fire('filter:topic.search', {+ const result = await plugins.hooks.fire('filter:topic.search', {tid: tid,term: term,+ ids: [],});- return Array.isArray(pids) ? pids : [];+ return Array.isArray(result) ? result : result.ids;};require('../promisify')(Topics);