From 94cee37eddfb20289b7877f56c7bb27da96d647d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 22 Jun 2017 17:00:05 +0200 Subject: [PATCH] FIX: uploads:recover_from_tombstone 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 c55722e2fee..a131503607d 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -438,7 +438,7 @@ def recover_from_tombstone if File.exists?(tombstone_path) File.open(tombstone_path) do |file| - new_upload = UploadCreator.new(file, File.basename(url), File.size(file)).create_for(Discourse::SYSTEM_USER_ID) + new_upload = UploadCreator.new(file, File.basename(url)).create_for(Discourse::SYSTEM_USER_ID) if new_upload.persisted? printf "Restored into #{new_upload.url}\n"