]> git.mxchange.org Git - friendica.git/commitdiff
Changed exceptions
authorMichael <heluecht@pirati.ca>
Tue, 5 Nov 2019 22:28:12 +0000 (22:28 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 5 Nov 2019 22:28:12 +0000 (22:28 +0000)
src/Module/Starred.php

index 74b75a42b0c7a21a58b706857132f4519092e12f..c1fa4c3b8be318df533003a9c581d0ee24da8540 100644 (file)
@@ -13,11 +13,11 @@ class Starred extends BaseModule
        public static function rawContent(array $parameters = [])
        {
                if (!local_user()) {
-                       throw new \Friendica\Network\HTTPException\NotFoundException();
+                       throw new \Friendica\Network\HTTPException\ForbiddenException();
                }
 
                if (empty($parameters['item'])) {
-                       throw new \Friendica\Network\HTTPException\NotFoundException();
+                       throw new \Friendica\Network\HTTPException\BadRequestException();
                }
 
                $itemId = intval($parameters['item']);