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 vmstan committed Jan 5, 2024
1 parent acce8bc commit 0a00fef
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 0a00fef

Please sign in to comment.