mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08: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