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 Oct 25, 2023
1 parent a4e6fe3 commit 235a4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/attachment_batch.rb
Original file line number Diff line number Diff line change
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 235a4cf

Please sign in to comment.