]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
all endpoints are now working
[friendica.git] / mod / unfollow.php
index c9d05721a0b62d2a75b5d6ec85d928c174a15f01..b80263a3ecd33349047e177f8ff964547b4c56d8 100644 (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 {