X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FFollowers.php;h=79f34021b13243ebc883b01106cbf31b92d46a1c;hb=3f71a51d210683a0f591d2a507bdfb95064536d3;hp=56160aecf81a10f8df4e857561ee99b1992302c5;hpb=4528d8748c76cf4257ae2c29bd2d7b13f8395922;p=friendica.git diff --git a/src/Module/Followers.php b/src/Module/Followers.php index 56160aecf8..79f34021b1 100644 --- a/src/Module/Followers.php +++ b/src/Module/Followers.php @@ -5,9 +5,9 @@ namespace Friendica\Module; use Friendica\BaseModule; -use Friendica\Protocol\ActivityPub; use Friendica\Core\System; use Friendica\Model\User; +use Friendica\Protocol\ActivityPub; /** * ActivityPub Followers @@ -18,13 +18,15 @@ class Followers extends BaseModule { $a = self::getApp(); + // @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);