mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
FIX image download with in reposotiroy entries
This commit is contained in:
@@ -5,8 +5,8 @@ module RepositoriesHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def download_type(str)
|
def download_type(str)
|
||||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb)
|
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)
|
default_type.include?(str&.downcase)
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_commit_author(author_json)
|
def render_commit_author(author_json)
|
||||||
|
|||||||
Reference in New Issue
Block a user