X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=10830bd103d29c51fb0d6f0bfb1bfa862e58bc17;hb=2a2e1a9e1271a85165fb6116999bca2fe1a71327;hp=92bded2faa501b4f1741d26f08596f5d30e9a72c;hpb=23b10cf2ae5fe10ba21a4b43e1aae17818647661;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index 92bded2faa..10830bd103 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -1,6 +1,6 @@ t('Unable to unfollow this contact, please retry in a few minutes or contact your administrator.'); - } else { - $notice_message = DI::l10n()->t('Contact was successfully unfollowed'); - } + Contact::unfollow($contact); + $notice_message = DI::l10n()->t('Contact was successfully unfollowed'); } catch (Exception $e) { - DI::logger()->error($e->getMessage(), ['owner' => $owner, 'contact' => $contact]); + DI::logger()->error($e->getMessage(), ['contact' => $contact]); $notice_message = DI::l10n()->t('Unable to unfollow this contact, please contact your administrator'); }