From 02c43f283ea6998935ec93e35e4d2593e884593a Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 Nov 2019 22:28:12 +0000 Subject: [PATCH] Changed exceptions --- src/Module/Starred.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Starred.php b/src/Module/Starred.php index 74b75a42b0..c1fa4c3b8b 100644 --- a/src/Module/Starred.php +++ b/src/Module/Starred.php @@ -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']);