From 1cd06df5fa4e620efee726ab83c02861752a14b7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 12:02:14 +0100 Subject: [PATCH 1/3] 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; From 8b23e771714c1a2687460120bf6006430458c1f8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 13:37:24 +0100 Subject: [PATCH 2/3] Only show supported networks in sidebar and contact list --- include/acl_selectors.php | 3 +++ include/contact_widgets.php | 43 ++++++++++++++++++++++++++++++++++--- mod/contacts.php | 5 +++-- 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/include/acl_selectors.php b/include/acl_selectors.php index a1154399a7..4ef3d05ea3 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -1,6 +1,7 @@ page['aside'] .= replace_macros(get_markup_template("contacts-widget-sidebar.tpl"),array( '$vcard_widget' => $vcard_widget, '$findpeople_widget' => $findpeople_widget, @@ -786,8 +786,9 @@ function contacts_content(&$a) { $total = $r[0]['total']; } + $sql_extra3 = unavailable_networks(); - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 ORDER BY `name` ASC LIMIT %d , %d ", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 $sql_extra3 ORDER BY `name` ASC LIMIT %d , %d ", intval($_SESSION['uid']), intval($a->pager['start']), intval($a->pager['itemspage']) From 2fabde5d2d06f2e9a8e6c3a84b3e3fdd19fdda6a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 13:42:31 +0100 Subject: [PATCH 3/3] Added the old Facebook addon for addon check --- include/contact_widgets.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/contact_widgets.php b/include/contact_widgets.php index a7c82c33cf..bbbd941b56 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -20,12 +20,12 @@ function findpeople_widget() { if(get_config('system','invitation_only')) { $x = get_pconfig(local_user(),'system','invites_remaining'); if($x || is_site_admin()) { - $a->page['aside'] .= '