mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX image download with in reposotiroy entries
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user