X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=2dc9180dc940084ec7f558d90e1bbf8b24d32205;hb=b0bf4b435949e923caa5d6d52b12d364bf16ae82;hp=a307c4d6e683594d3fd61ec4a97502816276bd1a;hpb=a44d200c211eff891f7d275b7e54ded33a50c446;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index a307c4d6e6..2dc9180dc9 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -137,13 +137,11 @@ function unfollow_process(string $url) // NOTREACHED } - $dissolve = ($contact['rel'] == Contact::SHARING); - $notice_message = ''; $return_path = $base_return_path . '/' . $contact['id']; try { - $result = Contact::terminateFriendship($owner, $contact, $dissolve); + $result = Contact::terminateFriendship($owner, $contact); if ($result === null) { $notice_message = DI::l10n()->t('Unfollowing is currently not supported by this contact\'s network.'); @@ -157,7 +155,7 @@ function unfollow_process(string $url) $notice_message = DI::l10n()->t('Contact was successfully unfollowed'); } } catch (Exception $e) { - DI::logger()->error($e->getMessage(), ['owner' => $owner, 'contact' => $contact, 'dissolve' => $dissolve]); + DI::logger()->error($e->getMessage(), ['owner' => $owner, 'contact' => $contact]); $notice_message = DI::l10n()->t('Unable to unfollow this contact, please contact your administrator'); }