mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:52:45 +08:00
FIX: Allow for nil upload record when migrating to S3
This commit is contained in:
parent
b74679f231
commit
46d8fd3831
@ -428,7 +428,7 @@ def migrate_to_s3
|
||||
%Q{attachment; filename="#{upload.original_filename}"}
|
||||
end
|
||||
|
||||
if upload.secure
|
||||
if upload&.secure
|
||||
options[:acl] = "private"
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user