mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add basic test case for UploadRecovery.
This commit is contained in:
@@ -47,6 +47,8 @@ class UploadRecovery
|
||||
end
|
||||
|
||||
def recover_from_local(post:, sha1:)
|
||||
return unless sha1.present?
|
||||
|
||||
public_path = Rails.root.join("public")
|
||||
|
||||
@paths ||= begin
|
||||
|
||||
Reference in New Issue
Block a user