mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 01:21:13 +01:00
static hooks don't return sync data
This commit is contained in:
@@ -229,7 +229,8 @@ function hookHandlerPromise(hook, hookObj, params) {
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (returned) {
|
||||
|
||||
if (hook.startsWith('filter:') && returned) {
|
||||
_resolve(returned);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user