From: Hypolite Petovan Date: Thu, 7 Oct 2021 00:19:12 +0000 (-0400) Subject: Remove confusing message during unfollow process X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e175ab3193ec61c0acff60c204a516e9acd5ff7;p=friendica.git Remove confusing message during unfollow process --- diff --git a/mod/unfollow.php b/mod/unfollow.php index 2dc9180dc9..d566ac3cf4 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -137,21 +137,14 @@ function unfollow_process(string $url) // NOTREACHED } - $notice_message = ''; $return_path = $base_return_path . '/' . $contact['id']; try { $result = Contact::terminateFriendship($owner, $contact); - if ($result === null) { - $notice_message = DI::l10n()->t('Unfollowing is currently not supported by this contact\'s network.'); - } - if ($result === false) { $notice_message = DI::l10n()->t('Unable to unfollow this contact, please retry in a few minutes or contact your administrator.'); - } - - if ($result === true) { + } else { $notice_message = DI::l10n()->t('Contact was successfully unfollowed'); } } catch (Exception $e) {