Node.js based forum software built for the modern web
maintain old behaviour
Barış Soner Uşaklıb2a988190c00
diff --git a/src/plugins/hooks.js b/src/plugins/hooks.jsindex 766bccad26..9b30ce316e 100644--- a/src/plugins/hooks.js+++ b/src/plugins/hooks.js@@ -230,8 +230,11 @@ function hookHandlerPromise(hook, hookObj, params) {return;}- if (hook.startsWith('filter:') && returned) {+ if (hook.startsWith('filter:') && returned !== undefined) {_resolve(returned);+ } else if (hook.startsWith('static:') && hookObj.method.length <= 1) {+ // make sure it is resolved if static hook doesn't return anything and doesn't use callback+ _resolve();}});}