Add new hook to support unfollow contacts on non-native networks

This commit is contained in:
Hypolite Petovan 2021-09-22 22:56:34 -04:00
parent 00382dd39e
commit d8febbe45e
4 changed files with 26 additions and 1 deletions

View file

@ -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);
}
}