about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStanislas <angristan@pm.me>2020-05-17 17:27:36 +0200
committerGitHub <noreply@github.com>2020-05-17 17:27:36 +0200
commitce87469d0a085b238646387fb01d78c206b83124 (patch)
tree601b6789065820d8574de6ded03045686cc686d5
parent199bbbcb9fe0620000538ae0c7766ff4a8f4cf0c (diff)
Fix `tootctl upgrade storage-schema` S3 ACL (#13768)
-rw-r--r--lib/mastodon/upgrade_cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/upgrade_cli.rb b/lib/mastodon/upgrade_cli.rb
index 629834b19..570b7e6fa 100644
--- a/lib/mastodon/upgrade_cli.rb
+++ b/lib/mastodon/upgrade_cli.rb
@@ -97,7 +97,7 @@ module Mastodon
         progress.log("Moving #{object.key} to #{new_object.key}") if options[:verbose]
 
         begin
-          object.move_to(new_object) unless dry_run?
+          object.move_to(new_object, acl: attachment.s3_permissions(style)) unless dry_run?
         rescue => e
           progress.log(pastel.red("Error processing #{object.key}: #{e}"))
           success = false