FIX: 'uploads:migrate_from_s3' rake task
This commit is contained in:
parent
8c9e24e9b0
commit
b7e6620109
|
@ -148,7 +148,7 @@ def migrate_from_s3
|
|||
tmp_file_name: "from_s3",
|
||||
follow_redirect: true
|
||||
)
|
||||
if upload = UploadCreator.new(file, filename, File.size(file)).create_for(post.user_id || -1)
|
||||
if upload = UploadCreator.new(file, filename).create_for(post.user_id || -1)
|
||||
post.raw = post.raw.gsub(/(https?:)?#{Regexp.escape(url)}/, upload.url)
|
||||
post.save
|
||||
post.rebake!
|
||||
|
|
Loading…
Reference in New Issue