Changed exceptions
This commit is contained in:
parent
7adc3460b3
commit
02c43f283e
1 changed files with 2 additions and 2 deletions
|
@ -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