]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Followers.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Followers.php
index b04d1976e0e503ca58fa9e8bc7cb87579ec71177..8bcb2a8996b2153cd5f8fd68f2ceb44bdcc8ee34 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -45,10 +45,10 @@ class Followers extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = $_REQUEST['page'] ?? null;
+               $page = !empty($request['page']) ? (int)$request['page'] : null;
 
                $followers = ActivityPub\Transmitter::getContacts($owner, [Contact::FOLLOWER, Contact::FRIEND], 'followers', $page, (string)HTTPSignature::getSigner('', $_SERVER));
 
-               System::jsonExit($followers, 'application/activity+json');
+               $this->jsonExit($followers, 'application/activity+json');
        }
 }