]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Followers.php
Group selection: Respect "pubmail" and ignore atchived or blocked contacts
[friendica.git] / src / Module / Followers.php
index 56160aecf81a10f8df4e857561ee99b1992302c5..c2096cd052b28b6d99dd88e83860ce58bce57bbc 100644 (file)
@@ -5,29 +5,31 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
-use Friendica\Protocol\ActivityPub;
 use Friendica\Core\System;
 use Friendica\Model\User;
+use Friendica\Protocol\ActivityPub;
 
 /**
  * ActivityPub Followers
  */
 class Followers extends BaseModule
 {
-       public static function rawContent()
+       public static function rawContent(array $parameters = [])
        {
                $a = self::getApp();
 
+               // @TODO: Replace with parameter from router
                if (empty($a->argv[1])) {
-                       System::httpExit(404);
+                       throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
+               // @TODO: Replace with parameter from router
                $owner = User::getOwnerDataByNick($a->argv[1]);
                if (empty($owner)) {
-                       System::httpExit(404);
+                       throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = defaults($_REQUEST, 'page', null);
+               $page = $_REQUEST['page'] ?? null;
 
                $followers = ActivityPub\Transmitter::getFollowers($owner, $page);