From: Michael Vogel Date: Sun, 29 Nov 2015 11:02:14 +0000 (+0100) Subject: Bugfix: Only show the feed link for local profiles X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cd06df5fa4e620efee726ab83c02861752a14b7;p=friendica.git Bugfix: Only show the feed link for local profiles --- diff --git a/include/identity.php b/include/identity.php index 0282b2d9a5..48fd5056dc 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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;