]> 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 47b8ad4cfdd5a8ecefdc00c0e72c5d1db12c7476..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';
                }
@@ -1239,9 +1235,7 @@ class Contact
                                'edit'     => [DI::l10n()->t('View Contact'), $contact_url, false],
                                'follow'   => [DI::l10n()->t('Connect/Follow'), $follow_link, true],
                                'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true],
-                               'mention'  => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false],
-                               'group'    => [DI::l10n()->t('View group'), $group_link, $contact['forum'], true],
-                               'self'     => [$contact['self'] ?? false, true],
+                               'mention'  => [$mention_label, $mention_url, false],
                        ];
                } else {
                        $menu = [