mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
FEATURE: add webp and svg to known image formats
This commit is contained in:
parent
199896a607
commit
d926cc13ac
|
@ -28,7 +28,7 @@ class FileHelper
|
|||
private
|
||||
|
||||
def self.images
|
||||
@@images ||= Set.new ["jpg", "jpeg", "png", "gif", "tif", "tiff", "bmp"]
|
||||
@@images ||= Set.new ["jpg", "jpeg", "png", "gif", "tif", "tiff", "bmp", "svg", "webp"]
|
||||
end
|
||||
|
||||
def self.images_regexp
|
||||
|
|
Loading…
Reference in New Issue
Block a user