Add Photo album cache flushes to Friendica Photo endpoints

This commit is contained in:
Hank Grabowski 2022-12-13 13:27:23 -05:00
parent 8f56aa316b
commit 800f94495b
5 changed files with 5 additions and 1 deletions

View file

@ -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;