]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/DFRN/Notify.php
Merge remote-tracking branch 'upstream/2021.12-rc' into user-banner
[friendica.git] / src / Module / DFRN / Notify.php
index 6aeb23417e1062cac7b7484d257fb84e10564078..09fe7ec144de198f06f2d126e8fa1c3c3e3afcef 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
  *
@@ -38,7 +38,7 @@ use Friendica\Network\HTTPException;
  */
 class Notify extends BaseModule
 {
-       public static function post(array $parameters = [])
+       protected function post(array $request = [])
        {
                $postdata = Network::postdata();
 
@@ -47,8 +47,8 @@ class Notify extends BaseModule
                }
 
                $data = json_decode($postdata);
-               if (is_object($data) && !empty($parameters['nickname'])) {
-                       $user = User::getByNickname($parameters['nickname']);
+               if (is_object($data) && !empty($this->parameters['nickname'])) {
+                       $user = User::getByNickname($this->parameters['nickname']);
                        if (empty($user)) {
                                throw new \Friendica\Network\HTTPException\InternalServerErrorException();
                        }