]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Followers.php
"DI" calls are replaced
[friendica.git] / src / Module / ActivityPub / Followers.php
index 8c90b2ac06c4f320dd993bb714bcf8093f53271a..fbf5bf282e8834344e989bc3302fb541647c3a77 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,14 +31,14 @@ use Friendica\Protocol\ActivityPub;
  */
 class Followers 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();
                }
 
                // @TODO: Replace with parameter from router
-               $owner = User::getOwnerDataByNick(static::$parameters['nickname']);
+               $owner = User::getOwnerDataByNick($this->parameters['nickname']);
                if (empty($owner)) {
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }