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');
}
}