From: Hypolite Petovan Date: Wed, 5 Aug 2020 02:45:33 +0000 (-0400) Subject: Remove relationship direction display for non-local user contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c5fe20018a3505bd324eefe436e2de46ae7b352;p=friendica.git Remove relationship direction display for non-local user contacts - [frio] Add profile link on avatar in contact_template --- 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 *}}