mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Fix typo in a0aeabbb940ec9df40625c396616d5d64b30e20f.
This commit is contained in:
@ -433,7 +433,7 @@ def missing_uploads
|
||||
end
|
||||
|
||||
if file_path.present?
|
||||
if (upload = UploadCreator.new(File.open(file_path), File.basename(path)).create_for(Discourse.system_user.id)).presisted?
|
||||
if (upload = UploadCreator.new(File.open(file_path), File.basename(path)).create_for(Discourse.system_user.id)).persisted?
|
||||
upload_id = upload.id
|
||||
|
||||
post.reload
|
||||
|
@ -238,6 +238,7 @@ def migration_successful?(db, should_raise = false)
|
||||
|
||||
puts error_message if count > 0
|
||||
|
||||
db = "default"
|
||||
cdn_path = SiteSetting.cdn_path("/uploads/#{db}/original").sub(/https?:/, "")
|
||||
count = Post.where("cooked LIKE '%#{cdn_path}%'").count
|
||||
error_message = "#{count} posts are not remapped to new S3 upload URL. #{failure_message}"
|
||||
|
Reference in New Issue
Block a user