]> git.mxchange.org Git - friendica.git/commitdiff
remove code in function follow_post() that was never executed.
authorrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 19:24:33 +0000 (20:24 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 19:24:33 +0000 (20:24 +0100)
mod/follow.php

index a3270e30dd610ed8f6e128243748de6a43510c48..83263f4031e5d1181e810c2462024853affe1002 100644 (file)
@@ -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