From: rabuzarus Date: Mon, 12 Feb 2018 19:24:33 +0000 (+0100) Subject: remove code in function follow_post() that was never executed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea770ed778584340d442472059ebe4a4898dd9bf;p=friendica.git remove code in function follow_post() that was never executed. --- diff --git a/mod/follow.php b/mod/follow.php index a3270e30dd..83263f4031 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -41,11 +41,7 @@ function follow_post(App $a) { goaway(System::baseUrl().'/contacts/'.$result['cid']); } - info(L10n::t('Contact added').EOL); - - if (strstr($return_url, 'contacts')) { - goaway(System::baseUrl().'/contacts/'.$contact_id); - } + info(L10n::t('The contact could not be added.').EOL); goaway($return_url); // NOTREACHED