From ea770ed778584340d442472059ebe4a4898dd9bf Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Mon, 12 Feb 2018 20:24:33 +0100 Subject: [PATCH] remove code in function follow_post() that was never executed. --- mod/follow.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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