]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Following.php
Merge pull request #11892 from annando/pagecache
[friendica.git] / src / Module / ActivityPub / Following.php
index e3ae10e87e22382d55501c1049c7bd767a5778fe..50d4a0824aa6b2434d842a8392a660626617a6f5 100644 (file)
@@ -43,7 +43,7 @@ class Following extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = $_REQUEST['page'] ?? null;
+               $page = !empty($request['page']) ? (int)$request['page'] : null;
 
                $following = ActivityPub\Transmitter::getContacts($owner, [Contact::SHARING, Contact::FRIEND], 'following', $page);