From 8179f2f65ee589351f1ee6368c1230382898be50 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 20 Feb 2015 23:56:41 +0100 Subject: [PATCH] Only show the relation on native networks. --- mod/contacts.php | 3 +++ view/templates/contact_edit.tpl | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/contacts.php b/mod/contacts.php index 515d9d5dcb..ea16e1475c 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -405,6 +405,9 @@ function contacts_content(&$a) { break; } + if(!in_array($contact['network'], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA))) + $relation_text = ""; + $relation_text = sprintf($relation_text,$contact['name']); if(($contact['network'] === NETWORK_DFRN) && ($contact['rel'])) { diff --git a/view/templates/contact_edit.tpl b/view/templates/contact_edit.tpl index b43560ef78..9d5063146e 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -16,7 +16,9 @@