mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:45:26 +08:00
Fix backend code for searching by a filetype as a combination of uploads and topic links. Add rspec test for extracting file extension in upload.
This commit is contained in:
@ -52,10 +52,6 @@ class Upload < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
def extension
|
||||
File.extname(original_filename)
|
||||
end
|
||||
|
||||
def self.generate_digest(path)
|
||||
Digest::SHA1.file(path).hexdigest
|
||||
end
|
||||
|
Reference in New Issue
Block a user