mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06: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…
Reference in New Issue
Block a user