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

@ -144,7 +144,7 @@ function unfollow_process(string $url)
Contact::terminateFriendship($owner, $contact, $dissolve);
}
// Sharing-only contacts get deleted as there no relationship any more
// Sharing-only contacts get deleted as there no relationship anymore
if ($dissolve) {
Contact::remove($contact['id']);
$return_path = $base_return_path;