]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Friendica/Photoalbum/Delete.php
Fix Friendica API Photo Album list documentation to reflect endpoint
[friendica.git] / src / Module / Api / Friendica / Photoalbum / Delete.php
index 64db9782cc10ca89041bccc2dbba592de170e342..76062b2fdedfe6e7df15fda0e2b607f003b1e7a7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -66,6 +66,7 @@ class Delete extends BaseApi
 
                // return success of deletion or error message
                if ($result) {
+                       Photo::clearAlbumCache($uid);
                        $answer = ['result' => 'deleted', 'message' => 'album `' . $request['album'] . '` with all containing photos has been deleted.'];
                        $this->response->exit('photoalbum_delete', ['$result' => $answer], $this->parameters['extension'] ?? null);
                } else {