]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Only show the feed link for local profiles
authorMichael Vogel <icarus@dabo.de>
Sun, 29 Nov 2015 11:02:14 +0000 (12:02 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 29 Nov 2015 11:02:14 +0000 (12:02 +0100)
include/identity.php

index 0282b2d9a51a1a14ff4bb0c417714ff071a41317..48fd5056dc98a10a85b3c97ad1156d956b8fa988 100644 (file)
@@ -218,15 +218,15 @@ if(! function_exists('profile_sidebar')) {
                if ($connect AND ($profile['network'] != NETWORK_DFRN) AND !isset($profile['remoteconnect']))
                        $connect = false;
 
-               if ($connect)
+               if (isset($profile['remoteconnect']))
+                       $remoteconnect = $profile['remoteconnect'];
+
+               if ($connect AND ($profile['network'] == NETWORK_DFRN) AND !isset($remoteconnect))
                        $subscribe_feed = t("Atom feed");
                else
                        $subscribe_feed = false;
 
-               if (isset($profile['remoteconnect']))
-                       $remoteconnect = $profile['remoteconnect'];
-
-               if( get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()) )
+               if(get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()))
                        $wallmessage = t('Message');
                else
                        $wallmessage = false;