]> git.mxchange.org Git - friendica.git/commitdiff
Only show the relation on native networks.
authorMichael Vogel <icarus@dabo.de>
Fri, 20 Feb 2015 22:56:41 +0000 (23:56 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 20 Feb 2015 22:56:41 +0000 (23:56 +0100)
mod/contacts.php
view/templates/contact_edit.tpl

index 515d9d5dcb49e1f85dbec38e3e3d75cd2fe34209..ea16e1475c3c9894d07e93e276230cca53823124 100644 (file)
@@ -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'])) {
index b43560ef78e23310669b0a14713fd386f235f15e..9d5063146e4fe3375a44570db22a6f1fb0f1c70e 100644 (file)
@@ -16,7 +16,9 @@
        <div id="contact-edit-nav-wrapper" >
                <div id="contact-edit-links">
                        <ul>
-                               <li><div id="contact-edit-rel">{{$relation_text}}</div></li>
+                               {{if $relation_text}}
+                                       <li><div id="contact-edit-rel">{{$relation_text}}</div></li>
+                               {{/if}}
                                <li><div id="contact-edit-nettype">{{$nettype}}</div></li>
                                {{if $lost_contact}}
                                        <li><div id="lost-contact-message">{{$lost_contact}}</div></li>