]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Followers.php
Remove DI dependency from Module\Contact\Profile
[friendica.git] / src / Module / ActivityPub / Followers.php
index b04d1976e0e503ca58fa9e8bc7cb87579ec71177..1b9bdbb0f2bb6e5f0cefc356256a50a4580b4956 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,7 +45,7 @@ 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));