]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Featured.php
spelling: chosen
[friendica.git] / src / Module / ActivityPub / Featured.php
index af5a3d317a8750d2c23dd26eb42e868a0c5ecd33..8e97097182037592759a047a6b722a4b041e8fac 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
  *
@@ -42,9 +42,10 @@ class Featured extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = $_REQUEST['page'] ?? null;
+               $page = !empty($request['page']) ? (int)$request['page'] : null;
 
-               $outbox = ActivityPub\Transmitter::getFeatured($owner, $page);
-               System::jsonExit($outbox, 'application/activity+json');
+               $featured = ActivityPub\Transmitter::getFeatured($owner, $page);
+
+               System::jsonExit($featured, 'application/activity+json');
        }
 }