]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Following.php
Move mod/ping to module class
[friendica.git] / src / Module / ActivityPub / Following.php
index 08574b546f73c50fe3a253791392beea741d698e..67d3010a3a68564e569c4a8c0a941d3b47f1c908 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
  *
@@ -31,13 +31,13 @@ use Friendica\Protocol\ActivityPub;
  */
 class Following extends BaseModule
 {
-       public static function rawContent()
+       protected function rawContent(array $request = [])
        {
-               if (empty(static::$parameters['nickname'])) {
+               if (empty($this->parameters['nickname'])) {
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $owner = User::getOwnerDataByNick(static::$parameters['nickname']);
+               $owner = User::getOwnerDataByNick($this->parameters['nickname']);
                if (empty($owner)) {
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }