From b1cfc42217c4976b06fe6a4cfa63748bd0c40af2 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 5 Jun 2020 11:37:31 +0800 Subject: [PATCH] change image_type --- app/views/repositories/_simple_entry.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/_simple_entry.json.jbuilder b/app/views/repositories/_simple_entry.json.jbuilder index 4e91aad3f..450e1a494 100644 --- a/app/views/repositories/_simple_entry.json.jbuilder +++ b/app/views/repositories/_simple_entry.json.jbuilder @@ -7,7 +7,7 @@ json.sha entry['sha'] json.path entry['path'] json.type entry['type'] json.size entry['size'] -json.content entry['content'].present? && ( !direct_download || !image_type ) ? render_decode64_content(entry['content']).force_encoding('UTF-8') : "" +json.content entry['content'].present? && ( !direct_download && !image_type ) ? render_decode64_content(entry['content']).force_encoding('UTF-8') : "" json.target entry['target'] json.download_url entry['download_url'] json.direct_download direct_download