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

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