]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/VCard.php
fix Typo
[friendica.git] / src / Content / Widget / VCard.php
index 32eb95e434db3add2acb627cee048a37c9814959..d906004c5ffbdb994fc1fd85517d73443306293b 100644 (file)
@@ -68,7 +68,7 @@ class VCard
                $follow_link      = '';
                $unfollow_link    = '';
                $wallmessage_link = '';
-               $showforum_link   = '';
+               $showgroup_link   = '';
 
                $photo   = Contact::getPhoto($contact);
 
@@ -100,6 +100,10 @@ class VCard
                        if (in_array($rel, [Contact::FOLLOWER, Contact::FRIEND]) && Contact::canReceivePrivateMessages($contact)) {
                                $wallmessage_link = 'message/new/' . $id;
                        }
+
+                       if (in_array($rel, [Contact::SHARING])) {
+                               $showgroup_link = 'network/group/' . $id;
+                       }
                }
 
                return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/vcard.tpl'), [
@@ -120,10 +124,10 @@ 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,
                        '$mentioning'       => DI::l10n()->t('Mention'),
                        '$post2group'       => DI::l10n()->t('Post to group'),
+                       '$showgroup'        => DI::l10n()->t('View group'),
+                       '$showgroup_link'   => $showgroup_link,
                ]);
        }
 }