Browse Source

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

lets-bump-hometown-to-mastodon-4.2
Claire 2 years ago
parent
commit
4c38706474
  1. 2
      app/lib/attachment_batch.rb

2
app/lib/attachment_batch.rb

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

Loading…
Cancel
Save