]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Following.php
Merge pull request #7413 from annando/issue-6675
[friendica.git] / src / Module / Following.php
index 670142c4897ad0c261c9853aef6cbdeff3a82f72..3a68e7e0afbd9bb21852e878e2decbd718e6e0ad 100644 (file)
@@ -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);