mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: crash
This commit is contained in:
@@ -109,7 +109,7 @@ Hooks.fire = async function (hook, params) {
|
|||||||
Hooks.fire('action:plugins.firehook', payload);
|
Hooks.fire('action:plugins.firehook', payload);
|
||||||
}
|
}
|
||||||
if (result !== undefined) {
|
if (result !== undefined) {
|
||||||
if (deleteCaller) {
|
if (deleteCaller && result && result.caller) {
|
||||||
delete result.caller;
|
delete result.caller;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user