diff --git a/src/Content/Widget/VCard.php b/src/Content/Widget/VCard.php index 8a949e9360..3e4f1e1d87 100644 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@ -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'), ]); } diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 243b48ad1d..d9f870f561 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1199,6 +1199,7 @@ class Contact $contact_url = 'contact/' . $contact['id']; $posts_link = 'contact/' . $contact['id'] . '/conversations'; + $group_link = 'network/group/' . $contact['id']; $follow_link = ''; $unfollow_link = ''; @@ -1232,6 +1233,7 @@ class Contact 'pm' => [DI::l10n()->t('Send PM'), $pm_url, false], 'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link, true], 'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true], + 'group' => [DI::l10n()->t('View group'), $group_link, $contact['forum'], true], ]; if (!empty($contact['pending'])) { diff --git a/view/templates/hovercard.tpl b/view/templates/hovercard.tpl index 563a5a248e..a820e5c550 100644 --- a/view/templates/hovercard.tpl +++ b/view/templates/hovercard.tpl @@ -24,6 +24,7 @@ {{if $profile.actions.pm}}{{$profile.actions.pm.0}}{{/if}}