From 405161998e526d14308682117ab69576a5dc359f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz=20=28admin=29?= Date: Sun, 1 Oct 2023 14:33:08 +0200 Subject: [PATCH] changes to fit to showgroup-button branch --- src/Model/Contact.php | 3 ++- view/templates/hovercard.tpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a8ee936861..7256706e0a 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 0162b8327e..66aba904f6 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}}