From: Michael Date: Mon, 17 Feb 2020 22:25:12 +0000 (+0000) Subject: Don't show "delete contact" when there is a follow or unfollow option X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8670b6268fee53b85414fbf66761f21a3f70f0b;p=friendica.git Don't show "delete contact" when there is a follow or unfollow option --- 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}}