]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Followers.php
Remove join profile table
[friendica.git] / src / Module / Followers.php
index 79f34021b13243ebc883b01106cbf31b92d46a1c..0907f8ba5cf594ecb3e03a5d10272c5650aeef89 100644 (file)
@@ -6,6 +6,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Core\System;
+use Friendica\DI;
 use Friendica\Model\User;
 use Friendica\Protocol\ActivityPub;
 
@@ -14,9 +15,9 @@ use Friendica\Protocol\ActivityPub;
  */
 class Followers extends BaseModule
 {
-       public static function rawContent()
+       public static function rawContent(array $parameters = [])
        {
-               $a = self::getApp();
+               $a = DI::app();
 
                // @TODO: Replace with parameter from router
                if (empty($a->argv[1])) {
@@ -29,7 +30,7 @@ class Followers extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = defaults($_REQUEST, 'page', null);
+               $page = $_REQUEST['page'] ?? null;
 
                $followers = ActivityPub\Transmitter::getFollowers($owner, $page);