gearheads
/
mastodon
Archived
2
0
Fork 0

Fix batch attachment deletion when using OpenStack Swift (#27554)

gh/dev^2
Claire 2023-10-25 15:55:57 +02:00
parent 4fc2523546
commit 4c38706474
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class AttachmentBatch
end
when :fog
logger.debug { "Deleting #{attachment.path(style)}" }
attachment.directory.files.new(key: attachment.path(style)).destroy
attachment.send(:directory).files.new(key: attachment.path(style)).destroy
when :azure
logger.debug { "Deleting #{attachment.path(style)}" }
attachment.destroy