]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Drop using the proxy large size for image preview
[friendica.git] / src / Model / Contact.php
index 3e547fcaffcd9c6e2fb60440fcf2ab5d3c83859d..be3cec47014a23204e5280bcece7eb85aec05dd3 100644 (file)
@@ -1198,20 +1198,16 @@ class Contact
                        $pm_url = 'message/new/' . $contact['id'];
                }
 
-               if ($contact['contact-type'] == Contact::TYPE_COMMUNITY) {
-                       $mention_label = DI::l10n()->t('Post to group');
-                       $mention_url = 'compose/0?body=!' . $contact['addr'];
-               } else {
-                       $mention_label = DI::l10n()->t('Mention');
-                       $mention_url = 'compose/0?body=@' . $contact['addr'];
-               }
-
                $contact_url = 'contact/' . $contact['id'];
 
                if ($contact['contact-type'] == Contact::TYPE_COMMUNITY) {
+                       $mention_label = DI::l10n()->t('Post to group');
+                       $mention_url = 'compose/0?body=!' . $contact['addr'];
                        $network_label = DI::l10n()->t('View group');
                        $network_url = 'network/group/' . $contact['id'];
                } else {
+                       $mention_label = DI::l10n()->t('Mention');
+                       $mention_url = 'compose/0?body=@' . $contact['addr'];
                        $network_label = DI::l10n()->t('Network Posts');
                        $network_url = 'contact/' . $contact['id'] . '/conversations';
                }