From 1cd06df5fa4e620efee726ab83c02861752a14b7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 12:02:14 +0100 Subject: [PATCH] Bugfix: Only show the feed link for local profiles --- include/identity.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;