mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Add new hook to support unfollow contacts on non-native networks
This commit is contained in:
parent
00382dd39e
commit
d8febbe45e
4 changed files with 26 additions and 1 deletions
|
@ -845,6 +845,12 @@ class Contact
|
|||
if ($dissolve) {
|
||||
ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $user['uid']);
|
||||
}
|
||||
} else {
|
||||
$hook_data = [
|
||||
'contact' => $contact,
|
||||
'dissolve' => $dissolve,
|
||||
];
|
||||
Hook::callAll('unfollow', $hook_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue