mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
88ac888a3b
commit
b38c9bed6f
3 changed files with 6 additions and 5 deletions
|
@ -90,7 +90,6 @@ class Create extends BaseApi
|
|||
if (!empty($photo)) {
|
||||
$data = ['photo' => $this->friendicaPhoto->createFromId($photo['resource_id'], null, $uid, $type)];
|
||||
$this->response->exit('photo_create', $data, $this->parameters['extension'] ?? null);
|
||||
return;
|
||||
} else {
|
||||
throw new HTTPException\InternalServerErrorException('unknown error - uploading photo failed, see Friendica log for more information');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue