From 4c5fe20018a3505bd324eefe436e2de46ae7b352 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 4 Aug 2020 22:45:33 -0400 Subject: [PATCH] Remove relationship direction display for non-local user contacts - [frio] Add profile link on avatar in contact_template --- src/Module/Contact.php | 2 +- view/theme/frio/templates/contact_template.tpl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Module/Contact.php b/src/Module/Contact.php index dc2d4dc4ff..750a927e88 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -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'); diff --git a/view/theme/frio/templates/contact_template.tpl b/view/theme/frio/templates/contact_template.tpl index 92eff17056..8bb817ed59 100644 --- a/view/theme/frio/templates/contact_template.tpl +++ b/view/theme/frio/templates/contact_template.tpl @@ -6,7 +6,9 @@
{{* For very small displays we use a dropdown menu for contact relating actions *}}