mirror of https://github.com/tootsuite/mastodon
Fix batch attachment deletion when using OpenStack Swift (#27554)
parent
4fc2523546
commit
4c38706474
|
@ -75,7 +75,7 @@ class AttachmentBatch
|
||||||
end
|
end
|
||||||
when :fog
|
when :fog
|
||||||
logger.debug { "Deleting #{attachment.path(style)}" }
|
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
|
when :azure
|
||||||
logger.debug { "Deleting #{attachment.path(style)}" }
|
logger.debug { "Deleting #{attachment.path(style)}" }
|
||||||
attachment.destroy
|
attachment.destroy
|
||||||
|
|
Loading…
Reference in New Issue