]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/FollowConfirm.php
Use rawContent for Special Options to avoid a protected options() method
[friendica.git] / src / Module / FollowConfirm.php
index 388c07a3794f4b6b4d4071427fc606ca534c6d8e..b61cfd4326daa4140f7fb3874fb0c1cec26807c5 100644 (file)
@@ -1,4 +1,24 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
@@ -10,9 +30,9 @@ use Friendica\Model\Contact;
  */
 class FollowConfirm extends BaseModule
 {
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
-               parent::post($post);
+               parent::post($request);
                $uid = local_user();
                if (!$uid) {
                        notice(DI::l10n()->t('Permission denied.'));