]> git.mxchange.org Git - friendica.git/commitdiff
Don't show "delete contact" when there is a follow or unfollow option
authorMichael <heluecht@pirati.ca>
Mon, 17 Feb 2020 22:25:12 +0000 (22:25 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Feb 2020 22:25:12 +0000 (22:25 +0000)
src/Model/Contact.php
view/theme/frio/templates/contact_template.tpl

index 4eaca00f970f1c16f6d8196f5060c3aec0a43aec..cf08a4cffcd6ec5d422bd55d352ee9782bb08b00 100644 (file)
@@ -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? ]
index e7af64c68c73633cdf762c8e6ae78242419b1f5c..92eff17056293badc79aefdf2b9ca4ddd31b918c 100644 (file)
                                        <i class="fa fa-user-plus" aria-hidden="true"></i>
                                </a>
                                {{/if}}
+                               {{if $contact.photo_menu.unfollow}}
+                               <a class="contact-action-link btn-link" href="{{$contact.photo_menu.unfollow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.unfollow.0}}">
+                                       <i class="fa fa-user-times" aria-hidden="true"></i>
+                               </a>
+                               {{/if}}
                                {{if $contact.photo_menu.hide}}
                                <a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
                                        <i class="fa fa-times" aria-hidden="true"></i>