namespace Friendica\Module;
use Friendica\BaseModule;
-use Friendica\Core\System;
+use Friendica\DI;
use Friendica\Protocol\OStatus;
/**
*/
class Feed extends BaseModule
{
- public static function content()
+ public static function content(array $parameters = [])
{
- $a = self::getApp();
+ $a = DI::app();
- $last_update = defaults($_GET, 'last_update', '');
+ $last_update = $_GET['last_update'] ?? '';
$nocache = !empty($_GET['nocache']) && local_user();
// @TODO: Replace with parameter from router
if ($a->argc < 2) {
- System::httpExit(400);
+ throw new \Friendica\Network\HTTPException\BadRequestException();
}
$type = null;