X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=2f9264088696e4157811975634057d368f88da7c;hb=865006682a3952565035207898b80dfbd6d390b1;hp=de1cb6cf7cdb05dd02a69c2bbc6447c59295f42b;hpb=e05c1821c297d6051c893cec33008b98741e7e89;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index de1cb6cf7c..2f92640886 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -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']; }