diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a8ee93686..7256706e0 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1201,6 +1201,7 @@ class Contact $mention_url = 'compose/0?body=@' . $contact['addr']; $contact_url = 'contact/' . $contact['id']; $posts_link = 'contact/' . $contact['id'] . '/conversations'; + $group_link = 'network/group/' . $contact['id']; $follow_link = ''; $unfollow_link = ''; @@ -1235,7 +1236,7 @@ class Contact 'mention' => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false], 'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link, true], 'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true], - 'isgroup' => [$contact['forum'], 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 0162b8327..66aba904f 100644 --- a/view/templates/hovercard.tpl +++ b/view/templates/hovercard.tpl @@ -22,7 +22,7 @@ {{* @todo we have two different photo menus one for contacts and one for items at the network stream. We currently use the contact photo menu, so the items options are missing We need to move them *}}
{{if $profile.actions.pm}}{{$profile.actions.pm.0}}{{/if}} - {{if $profile.addr}}{{/if}} + {{if $profile.addr}}{{/if}}
{{if $profile.actions.network}}{{/if}}