Browse Source

目录树加载图片不需要Content

pull/313/head
xiaoxiaoqiong 4 years ago
parent
commit
23dc2d7fb6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/_simple_entry.json.jbuilder

+ 1
- 1
app/views/repositories/_simple_entry.json.jbuilder View File

@@ -9,7 +9,7 @@ if @project.forge?
json.type entry['type']
json.size entry['size']

json.content direct_download ? nil : decode64_content(entry, @owner, @repository, @ref, @path)
json.content (direct_download || image_type) ? nil : decode64_content(entry, @owner, @repository, @ref, @path)
json.target entry['target']
download_url =


Loading…
Cancel
Save