FIX: remove the unwanted code.

This commit is contained in:
Vinoth Kannan 2019-05-20 19:10:21 +05:30
parent 41bc90dd3e
commit 9f43852609

View File

@ -419,7 +419,6 @@ task 'posts:missing_uploads' => :environment do
tmp.rewind
if upload = UploadCreator.new(tmp, File.basename(path)).create_for(Discourse.system_user.id)
sha1s << upload.sha1
upload_id = upload.id
DbHelper.remap(UrlHelper.absolute(src), upload.url)