From f08e7bdbffd077fab34932e15e453fae67336e11 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 12 Sep 2018 02:06:14 -0700 Subject: [PATCH] Fix incorrect variable. --- lib/upload_recovery.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload_recovery.rb b/lib/upload_recovery.rb index 25f92eb3998..90b21a36d80 100644 --- a/lib/upload_recovery.rb +++ b/lib/upload_recovery.rb @@ -106,7 +106,7 @@ class UploadRecovery end def create_upload(file, filename, post) - upload = UploadCreator.new(tmp, filename).create_for(post.user_id) + upload = UploadCreator.new(file, filename).create_for(post.user_id) post.rebake! if upload.persisted? end end