]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Following.php
Merge pull request #13093 from annando/emoji-comments
[friendica.git] / src / Module / ActivityPub / Following.php
index e3ae10e87e22382d55501c1049c7bd767a5778fe..ae2709611798fc0ead0e1d7967de35fed4fb1082 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
  *
@@ -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);