show "view group" in hovercard

but only on group-contacts.
rename all *forum to *group in code
This commit is contained in:
Jakobus Schürz (admin) 2023-10-01 14:25:23 +02:00
parent e6a4467557
commit 78e9ee651f
4 changed files with 10 additions and 15 deletions

View file

@ -68,7 +68,7 @@ class VCard
$follow_link = '';
$unfollow_link = '';
$wallmessage_link = '';
$showforum_link = '';
$showgroup_link = '';
$photo = Contact::getPhoto($contact);
@ -102,7 +102,7 @@ class VCard
}
if (in_array($rel, [Contact::SHARING])) {
$showforum_link = 'network/group/' . $id;
$showgroup_link = 'network/group/' . $id;
}
}
@ -124,8 +124,8 @@ class VCard
'$unfollow_link' => $unfollow_link,
'$wallmessage' => DI::l10n()->t('Message'),
'$wallmessage_link' => $wallmessage_link,
'$showforum' => DI::l10n()->t('Show Forum'),
'$showforum_link' => $showforum_link,
'$showgroup' => DI::l10n()->t('Show group'),
'$showgroup_link' => $showgroup_link,
'$mentioning' => DI::l10n()->t('Mention'),
]);
}