From b7e66201098662377d690676dd724f91a8a21da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 23 Jun 2017 10:14:45 +0200 Subject: [PATCH] FIX: 'uploads:migrate_from_s3' rake task --- lib/tasks/uploads.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index a131503607d..e8c5dc67b29 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -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!