]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Featured.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Featured.php
index a4b8c3fef10e48791dce63838e49fc997d13ea2c..57934cf3302068b7cb3cbdbf99aed25626c7cf6e 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,10 +42,10 @@ class Featured extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = $request['page'] ?? null;
+               $page = !empty($request['page']) ? (int)$request['page'] : null;
 
                $featured = ActivityPub\Transmitter::getFeatured($owner, $page);
 
-               System::jsonExit($featured, 'application/activity+json');
+               $this->jsonExit($featured, 'application/activity+json');
        }
 }