Changed exceptions
This commit is contained in:
parent
7adc3460b3
commit
02c43f283e
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue