$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';
}
'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 = [