X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FFollowing.php;h=3a68e7e0afbd9bb21852e878e2decbd718e6e0ad;hb=cc7444d84db2bc729c40be2190dbfbe3ca7725ba;hp=670142c4897ad0c261c9853aef6cbdeff3a82f72;hpb=07cb88788540b4da83fbbaca2eed12bb6bed3a35;p=friendica.git diff --git a/src/Module/Following.php b/src/Module/Following.php index 670142c489..3a68e7e0af 100644 --- a/src/Module/Following.php +++ b/src/Module/Following.php @@ -20,13 +20,13 @@ class Following extends BaseModule // @TODO: Replace with parameter from router if (empty($a->argv[1])) { - System::httpExit(404); + throw new \Friendica\Network\HTTPException\NotFoundException(); } // @TODO: Replace with parameter from router $owner = User::getOwnerDataByNick($a->argv[1]); if (empty($owner)) { - System::httpExit(404); + throw new \Friendica\Network\HTTPException\NotFoundException(); } $page = defaults($_REQUEST, 'page', null);