FIX: uploads:recover_from_tombstone rake task

This commit is contained in:
Régis Hanol 2017-06-22 17:00:05 +02:00
parent 6e5c59e5ec
commit 94cee37edd
1 changed files with 1 additions and 1 deletions

View File

@ -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"