Skip to content

Commit

Permalink
Fix batch attachment deletion when using OpenStack Swift (mastodon#27554
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ClearlyClaire authored and zunda committed Oct 26, 2023
1 parent 21c0d15 commit 661ee6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/attachment_batch.rb
Expand Up @@ -75,7 +75,7 @@ def remove_files
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
Expand Down

0 comments on commit 661ee6b

Please sign in to comment.