mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Pass correct hook data for support_follow and support_revoke_follow
This commit is contained in:
parent
e1bd8fdba0
commit
c0f03889c5
1 changed files with 12 additions and 6 deletions
|
@ -84,10 +84,13 @@ class Protocol
|
|||
return true;
|
||||
}
|
||||
|
||||
$result = null;
|
||||
Hook::callAll('support_follow', $result);
|
||||
$hook_data = [
|
||||
'protocol' => $protocol,
|
||||
'result' => null
|
||||
];
|
||||
Hook::callAll('support_follow', $hook_data);
|
||||
|
||||
return $result === true;
|
||||
return $hook_data['result'] === true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,10 +106,13 @@ class Protocol
|
|||
return true;
|
||||
}
|
||||
|
||||
$result = null;
|
||||
Hook::callAll('support_revoke_follow', $result);
|
||||
$hook_data = [
|
||||
'protocol' => $protocol,
|
||||
'result' => null
|
||||
];
|
||||
Hook::callAll('support_revoke_follow', $hook_data);
|
||||
|
||||
return $result === true;
|
||||
return $hook_data['result'] === true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue