Restore the behaviour to remove the remote contact upon termination

This commit is contained in:
Michael
2018-09-05 05:02:06 +00:00
parent 59d06b6c78
commit 9ef1d827f3
7 changed files with 25 additions and 16 deletions

View File

@@ -46,13 +46,15 @@ function unfollow_post()
// NOTREACHED
}
$dissolve = ($contact['rel'] == Contact::SHARING);
$owner = User::getOwnerDataById($uid);
if ($owner) {
Contact::terminateFriendship($owner, $contact);
Contact::terminateFriendship($owner, $contact, $dissolve);
}
// Sharing-only contacts get deleted as there no relationship any more
if ($contact['rel'] == Contact::SHARING) {
if ($dissolve) {
Contact::remove($contact['id']);
$return_path = 'contacts';
} else {