change repository images error

This commit is contained in:
sylor_huang@126.com
2020-06-23 14:56:53 +08:00
parent 3e64f4ae97
commit 4facaf7076
3 changed files with 34 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ json.entries do
content =
if entry['name'] === 'README.md'
content = Gitea::Repository::Entries::GetService.call(@project_owner, @project.identifier, entry['name'], ref: @ref)['content']
render_decode64_content content
readme_render_decode64_content(content, @path)
else
entry['content']
end