Only show the relation on native networks.
This commit is contained in:
parent
1dc961713d
commit
8179f2f65e
2 changed files with 6 additions and 1 deletions
|
@ -405,6 +405,9 @@ function contacts_content(&$a) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!in_array($contact['network'], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA)))
|
||||||
|
$relation_text = "";
|
||||||
|
|
||||||
$relation_text = sprintf($relation_text,$contact['name']);
|
$relation_text = sprintf($relation_text,$contact['name']);
|
||||||
|
|
||||||
if(($contact['network'] === NETWORK_DFRN) && ($contact['rel'])) {
|
if(($contact['network'] === NETWORK_DFRN) && ($contact['rel'])) {
|
||||||
|
|
|
@ -16,7 +16,9 @@
|
||||||
<div id="contact-edit-nav-wrapper" >
|
<div id="contact-edit-nav-wrapper" >
|
||||||
<div id="contact-edit-links">
|
<div id="contact-edit-links">
|
||||||
<ul>
|
<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>
|
<li><div id="contact-edit-nettype">{{$nettype}}</div></li>
|
||||||
{{if $lost_contact}}
|
{{if $lost_contact}}
|
||||||
<li><div id="lost-contact-message">{{$lost_contact}}</div></li>
|
<li><div id="lost-contact-message">{{$lost_contact}}</div></li>
|
||||||
|
|
Loading…
Reference in a new issue