X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FFeed.php;h=4c7059c038dc0bb221699f4c3840dcad3606f2bf;hb=5a3991d4f7bc929c1087d9275716fc1c8cc299a6;hp=5df68f223ed57b93a365f8f1cc8580e306111d70;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/src/Module/Feed.php b/src/Module/Feed.php index 5df68f223e..4c7059c038 100644 --- a/src/Module/Feed.php +++ b/src/Module/Feed.php @@ -28,8 +28,8 @@ class Feed extends BaseModule { $a = self::getApp(); - $last_update = x($_GET, 'last_update') ? $_GET['last_update'] : ''; - $nocache = x($_GET, 'nocache') && local_user(); + $last_update = defaults($_GET, 'last_update', ''); + $nocache = !empty($_GET['nocache']) && local_user(); if ($a->argc < 2) { System::httpExit(400); @@ -54,7 +54,7 @@ class Feed extends BaseModule $nickname = $a->argv[1]; header("Content-type: application/atom+xml"); - echo OStatus::feed($nickname, $last_update, 10, $type, $nocache); + echo OStatus::feed($nickname, $last_update, 10, $type, $nocache, true); killme(); } }