Skip to content

A platform for community discussion. Free, open, simple.

Fix incorrect variable.

Guo Xiang Tan2cc48cfd0671
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