mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
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 = [])
|
public static function rawContent(array $parameters = [])
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($parameters['item'])) {
|
if (empty($parameters['item'])) {
|
||||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
throw new \Friendica\Network\HTTPException\BadRequestException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$itemId = intval($parameters['item']);
|
$itemId = intval($parameters['item']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue