mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +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
|
@ -135,6 +135,7 @@ class Update extends BaseApi
|
|||
|
||||
// return success of updating or error message
|
||||
if ($result) {
|
||||
Photo::clearAlbumCache($uid);
|
||||
$answer = ['result' => 'updated', 'message' => 'Image id `' . $photo_id . '` has been updated.'];
|
||||
$this->response->exit('photo_update', ['$result' => $answer], $this->parameters['extension'] ?? null);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue