Browse Source

fixed 仓库树列表不加载图片内容

pull/330/head
xxq250 3 years ago
parent
commit
85c12b2cd4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/entries.json.jbuilder

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

@@ -54,7 +54,7 @@ if @project.forge?
json.submodule_git_url entry['submodule_git_url'].nil? ? nil : repo_git_submodule_url(@owner, @repository, entry['submodule_git_url'])
json.size entry['size']
json.is_readme_file is_readme?(entry['type'], entry['name'])
json.content decode64_content(entry, @owner, @repository, @ref, @path)
json.content nil #decode64_content(entry, @owner, @repository, @ref, @path)
json.target entry['target']
json.commit do
json.partial! 'last_commit', latest_commit: entry['latest_commit']


Loading…
Cancel
Save