set ! and @ on mentioning in hover-card

This commit is contained in:
Jakobus Schürz (admin) 2023-10-01 14:59:37 +02:00
parent 405161998e
commit 17d7432f0e
2 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,6 @@ class VCard
$follow_link = ''; $follow_link = '';
$unfollow_link = ''; $unfollow_link = '';
$wallmessage_link = ''; $wallmessage_link = '';
$showforum_link = '';
$photo = Contact::getPhoto($contact); $photo = Contact::getPhoto($contact);
@ -120,8 +119,6 @@ class VCard
'$unfollow_link' => $unfollow_link, '$unfollow_link' => $unfollow_link,
'$wallmessage' => DI::l10n()->t('Message'), '$wallmessage' => DI::l10n()->t('Message'),
'$wallmessage_link' => $wallmessage_link, '$wallmessage_link' => $wallmessage_link,
'$showforum' => DI::l10n()->t('Show forum'),
'$showforum_link' => $showforum_link,
'$mentioning' => DI::l10n()->t('Mention'), '$mentioning' => DI::l10n()->t('Mention'),
'$post2group' => DI::l10n()->t('Post to group'), '$post2group' => DI::l10n()->t('Post to group'),
]); ]);

View File

@ -1198,7 +1198,11 @@ class Contact
$pm_url = 'message/new/' . $contact['id']; $pm_url = 'message/new/' . $contact['id'];
} }
$mention_url = 'compose/0?body=@' . $contact['addr']; if (in_array($contact['rel'], [contact::SHARING])) {
$mention_url = 'compose/0?body=!' . $contact['addr'];
} else {
$mention_url = 'compose/0?body=@' . $contact['addr'];
}
$contact_url = 'contact/' . $contact['id']; $contact_url = 'contact/' . $contact['id'];
$posts_link = 'contact/' . $contact['id'] . '/conversations'; $posts_link = 'contact/' . $contact['id'] . '/conversations';
$group_link = 'network/group/' . $contact['id']; $group_link = 'network/group/' . $contact['id'];