Remove relationship direction display for non-local user contacts

- [frio] Add profile link on avatar in contact_template
This commit is contained in:
Hypolite Petovan 2020-08-04 22:45:33 -04:00
parent 470079c37c
commit 4c5fe20018
2 changed files with 4 additions and 2 deletions

View file

@ -1030,7 +1030,7 @@ class Contact extends BaseModule
}
}
if (!empty($contact['uid']) && !empty($contact['rel'])) {
if (!empty($contact['uid']) && !empty($contact['rel']) && local_user() == $contact['uid']) {
switch ($contact['rel']) {
case Model\Contact::FRIEND:
$alt_text = DI::l10n()->t('Mutual Friendship');

View file

@ -6,7 +6,9 @@
<div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
<div class="contact-photo-image-wrapper hidden-xs">
<img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
<a href="{{$contact.url}}">
<img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
</a>
</div>
{{* For very small displays we use a dropdown menu for contact relating actions *}}