FIX image download with in reposotiroy entries

This commit is contained in:
Jasder 2020-05-29 17:56:52 +08:00
parent a239025a94
commit d391972b8b
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ module RepositoriesHelper
end
def download_type(str)
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb)
default_type.include?(str)
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb png jpg gif tif psd svg)
default_type.include?(str&.downcase)
end
def render_commit_author(author_json)