add self for unfollowed contact
authorJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 3 Oct 2023 03:51:49 +0000 (05:51 +0200)
committerJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 3 Oct 2023 04:03:32 +0000 (06:03 +0200)
src/Model/Contact.php

index 3e547fc..47b8ad4 100644 (file)
@@ -1239,7 +1239,9 @@ 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'  => [$mention_label, $mention_url, false],
+                               '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],
                        ];
                } else {
                        $menu = [