fix code because of review

This commit is contained in:
Jakobus Schürz 2023-10-02 12:00:23 +02:00
parent 8378edc95f
commit 05f2cf9202
7 changed files with 62 additions and 67 deletions

View file

@ -101,7 +101,7 @@ class VCard
$wallmessage_link = 'message/new/' . $id;
}
if (in_array($rel, [Contact::SHARING])) {
if ($contact['contact-type'] == Contact::TYPE_COMMUNITY) {
$showgroup_link = 'network/group/' . $id;
}
}
@ -124,8 +124,8 @@ class VCard
'$unfollow_link' => $unfollow_link,
'$wallmessage' => DI::l10n()->t('Message'),
'$wallmessage_link' => $wallmessage_link,
'$mentioning' => DI::l10n()->t('Mention'),
'$post2group' => DI::l10n()->t('Post to group'),
'$mention' => DI::l10n()->t('Mention'),
'$posttogroup' => DI::l10n()->t('Post to group'),
'$showgroup' => DI::l10n()->t('View group'),
'$showgroup_link' => $showgroup_link,
]);