mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:43:42 +00:00
Merge pull request #10667 from nupplaphil/bug/photo_delete
Fix Photo::delete()
This commit is contained in:
commit
093c656003
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ class Photo
|
|||
while ($photo = DBA::fetch($photos)) {
|
||||
try {
|
||||
$backend_class = DI::storageManager()->getWritableStorageByName($photo['backend-class'] ?? '');
|
||||
$backend_class->delete($item['backend-ref'] ?? '');
|
||||
$backend_class->delete($photo['backend-ref'] ?? '');
|
||||
// Delete the photos after they had been deleted successfully
|
||||
DBA::delete("photo", ['id' => $photo['id']]);
|
||||
} catch (InvalidClassStorageException $storageException) {
|
||||
|
|
Loading…
Reference in a new issue