mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 02:44:34 +08:00
Fix incorrect variable.
This commit is contained in:
parent
797a259702
commit
f08e7bdbff
|
@ -106,7 +106,7 @@ class UploadRecovery
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_upload(file, filename, post)
|
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?
|
post.rebake! if upload.persisted?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user