From: Hypolite Petovan Date: Mon, 29 Nov 2021 12:06:41 +0000 (-0500) Subject: Use user-specific id to fetch the list of group appartenance in Module\Contact\Profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2df5d66d79078c7fc222bc718b1b0952027969d;p=friendica.git Use user-specific id to fetch the list of group appartenance in Module\Contact\Profile --- diff --git a/src/Module/Contact/Profile.php b/src/Module/Contact/Profile.php index e58c329f28..fb67eb04c1 100644 --- a/src/Module/Contact/Profile.php +++ b/src/Module/Contact/Profile.php @@ -208,7 +208,7 @@ class Profile extends BaseModule $groups_widget = ''; if (!in_array($localRelationship->rel, [Contact::NOTHING, Contact::SELF])) { - $groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $contact['id']); + $groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $data['user']); } $this->page['aside'] .= $vcard_widget . $groups_widget;