]> cat aescling's git repositories - mastodon.git/commitdiff
Fix `tootctl upgrade storage-schema` S3 ACL (#13768)
authorStanislas <angristan@pm.me>
Sun, 17 May 2020 15:27:36 +0000 (17:27 +0200)
committerGitHub <noreply@github.com>
Sun, 17 May 2020 15:27:36 +0000 (17:27 +0200)
lib/mastodon/upgrade_cli.rb

index 629834b19fcc48c00b9bae324d44c2df3db9e6ba..570b7e6fa8a3327ca34617362ca9ffdabe0ddf6e 100644 (file)
@@ -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