]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Group.php
We now offer an endpoint for featured posts
[friendica.git] / src / Module / Group.php
index 883f09cb55a46746fcc43a2642734a58ba292731..3cd8166f1fadc2a37275b27b39787c29fc7ef917 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,7 +32,7 @@ require_once 'boot.php';
 
 class Group extends BaseModule
 {
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
                if (DI::mode()->isAjax()) {
                        $this->ajaxPost();
@@ -47,7 +47,7 @@ class Group extends BaseModule
                if ((DI::args()->getArgc() == 2) && (DI::args()->getArgv()[1] === 'new')) {
                        BaseModule::checkFormSecurityTokenRedirectOnError('/group/new', 'group_edit');
 
-                       $name = trim($_POST['groupname']);
+                       $name = trim($request['groupname']);
                        $r = Model\Group::create(local_user(), $name);
                        if ($r) {
                                $r = Model\Group::getIdByName(local_user(), $name);