mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 15:09:29 +00:00
Fix batch attachment deletion when using OpenStack Swift (#27554)
This commit is contained in:
parent
a4e6fe36cb
commit
235a4cfdc8
|
@ -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 a new issue