]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Feed.php
Added feedback
[friendica.git] / src / Module / Feed.php
index e5ebe2a4d66239e4551232fb68c49b3fe639e05a..ba1b085963d9d2afb99d37506d5e7aca39530ea8 100644 (file)
@@ -31,11 +31,13 @@ class Feed extends BaseModule
                $last_update = defaults($_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;
+               // @TODO: Replace with parameter from router
                if ($a->argc > 2) {
                        $type = $a->argv[2];
                }
@@ -53,6 +55,7 @@ class Feed extends BaseModule
                                $type = 'posts';
                }
 
+               // @TODO: Replace with parameter from router
                $nickname = $a->argv[1];
                header("Content-type: application/atom+xml; charset=utf-8");
                echo OStatus::feed($nickname, $last_update, 10, $type, $nocache, true);