]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
Merge remote-tracking branch 'upstream/develop' into user-contact
[friendica.git] / mod / unfollow.php
index de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b..2f9264088696e4157811975634057d368f88da7c 100644 (file)
@@ -144,12 +144,12 @@ 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;
        } else {
-               DBA::update('contact', ['rel' => Contact::FOLLOWER], ['id' => $contact['id']]);
+               Contact::update(['rel' => Contact::FOLLOWER], ['id' => $contact['id']]);
                $return_path = $base_return_path . '/' . $contact['id'];
        }