mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 07:34:25 +02:00
Rename ApipResponse->exit* methods to better show their meaning
This commit is contained in:
parent
960171c4e0
commit
642baa1f2a
68 changed files with 88 additions and 88 deletions
|
@ -90,7 +90,7 @@ class Create extends BaseApi
|
|||
if (!empty($photo)) {
|
||||
Photo::clearAlbumCache($uid);
|
||||
$data = ['photo' => $this->friendicaPhoto->createFromId($photo['resource_id'], null, $uid, $type)];
|
||||
$this->response->exit('photo_create', $data, $this->parameters['extension'] ?? null);
|
||||
$this->response->addFormattedContent('photo_create', $data, $this->parameters['extension'] ?? null);
|
||||
} 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