]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Followers.php
Merge pull request #12227 from matthiasmoritz/public_calendar
[friendica.git] / src / Module / ActivityPub / Followers.php
index b04d1976e0e503ca58fa9e8bc7cb87579ec71177..48236da301580f1a1d7d892b8129a9a827a4d962 100644 (file)
@@ -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));