X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FFollowing.php;h=739971df99c0c34c40fb5be0ddaaff207a7ec471;hb=9827e933a2a1b8e93f293d4e6293384126e5784c;hp=3a68e7e0afbd9bb21852e878e2decbd718e6e0ad;hpb=c9cce8492e5b2607b2a092474d1de4d188b7a2c9;p=friendica.git diff --git a/src/Module/Following.php b/src/Module/Following.php index 3a68e7e0af..739971df99 100644 --- a/src/Module/Following.php +++ b/src/Module/Following.php @@ -6,6 +6,7 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\System; +use Friendica\DI; use Friendica\Model\User; use Friendica\Protocol\ActivityPub; @@ -14,9 +15,9 @@ use Friendica\Protocol\ActivityPub; */ class Following extends BaseModule { - public static function rawContent() + public static function rawContent(array $parameters = []) { - $a = self::getApp(); + $a = DI::app(); // @TODO: Replace with parameter from router if (empty($a->argv[1])) { @@ -29,7 +30,7 @@ class Following extends BaseModule throw new \Friendica\Network\HTTPException\NotFoundException(); } - $page = defaults($_REQUEST, 'page', null); + $page = $_REQUEST['page'] ?? null; $Following = ActivityPub\Transmitter::getFollowing($owner, $page);