diff --git a/src/topics/tags.js b/src/topics/tags.js index 2508445d66..192d5e8a26 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -298,7 +298,8 @@ module.exports = function (Topics) { Topics.getRelatedTopics = async function (topicData, uid) { if (plugins.hasListeners('filter:topic.getRelatedTopics')) { - return await plugins.fireHook('filter:topic.getRelatedTopics', { topic: topicData, uid: uid }); + const result = await plugins.fireHook('filter:topic.getRelatedTopics', { topic: topicData, uid: uid, topics: [] }); + return result.topics; } let maximumTopics = meta.config.maximumRelatedTopics;