From f8670b6268fee53b85414fbf66761f21a3f70f0b Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Feb 2020 22:25:12 +0000 Subject: [PATCH] Don't show "delete contact" when there is a follow or unfollow option --- src/Model/Contact.php | 4 ++++ view/theme/frio/templates/contact_template.tpl | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 4eaca00f97..cf08a4cffc 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1278,6 +1278,10 @@ class Contact } } + if (!empty($follow_link) || !empty($unfollow_link)) { + $contact_drop_link = ''; + } + /** * Menu array: * "name" => [ "Label", "link", (bool)Should the link opened in a new tab? ] diff --git a/view/theme/frio/templates/contact_template.tpl b/view/theme/frio/templates/contact_template.tpl index e7af64c68c..92eff17056 100644 --- a/view/theme/frio/templates/contact_template.tpl +++ b/view/theme/frio/templates/contact_template.tpl @@ -73,6 +73,11 @@ {{/if}} + {{if $contact.photo_menu.unfollow}} + + + + {{/if}} {{if $contact.photo_menu.hide}} -- 2.39.5