1
0
Fork 0

Changed exceptions

This commit is contained in:
Michael 2019-11-05 22:28:12 +00:00
parent 7adc3460b3
commit 02c43f283e

View 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']);