]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Friendica/Photoalbum/Delete.php
Merge pull request #11037 from MrPetovan/bug/11023-api-photo-delete
[friendica.git] / src / Module / Api / Friendica / Photoalbum / Delete.php
index 2d71e3581231e4d3d2a7afd04e8fba3c48d5dcb7..8a45de2d3632fb78497f9ea9e87bd51230cc3e20 100644 (file)
@@ -58,7 +58,7 @@ class Delete extends BaseApi
 
                // function for setting the items to "deleted = 1" which ensures that comments, likes etc. are not shown anymore
                // to the user and the contacts of the users (drop_items() performs the federation of the deletion to other networks
-               $condition = ['uid' => $uid, 'resource-id' => $resourceIds, 'type' => 'photo'];
+               $condition = ['uid' => $uid, 'resource-id' => $resourceIds, 'post-type' => Item::PT_IMAGE, 'origin' => true];
                Item::deleteForUser($condition, $uid);
 
                // now let's delete all photos from the album