mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Add Photo album cache flushes to Friendica Photo endpoints
This commit is contained in:
parent
8f56aa316b
commit
800f94495b
5 changed files with 5 additions and 1 deletions
|
@ -88,6 +88,7 @@ class Create extends BaseApi
|
|||
|
||||
// return success of updating or error message
|
||||
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);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue