Skip to content

Commit

Permalink
Fix user archive takeouts when using OpenStack Swift (mastodon#24431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jun 21, 2023
1 parent 1bd831b commit 3ef3b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/backups_controller.rb
Expand Up @@ -13,7 +13,7 @@ def download
when :s3
redirect_to @backup.dump.expiring_url(10)
when :fog
if Paperclip::Attachment.default_options.dig(:storage, :fog_credentials, :openstack_temp_url_key).present?
if Paperclip::Attachment.default_options.dig(:fog_credentials, :openstack_temp_url_key).present?
redirect_to @backup.dump.expiring_url(Time.now.utc + 10)
else
redirect_to full_asset_url(@backup.dump.url)
Expand Down

0 comments on commit 3ef3b59

Please sign in to comment.