From: Jakobus Schürz (admin) Date: Sun, 1 Oct 2023 12:33:08 +0000 (+0200) Subject: changes to fit to showgroup-button branch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=405161998e526d14308682117ab69576a5dc359f;p=friendica.git changes to fit to showgroup-button branch --- 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}}