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 *}}