]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Profile.php
Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes
[friendica.git] / src / Module / Contact / Profile.php
index 84230abb332d8730664102a1cbe703234b6b9a38..88f927c40f6c7d9087de0d355b06e364fad35287 100644 (file)
@@ -71,7 +71,7 @@ class Profile extends BaseModule
                $this->config            = $config;
        }
 
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
                if (!local_user()) {
                        return;
@@ -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;