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');