/uploads/batch: use preview_url for non-proxied images (#3891).

This commit is contained in:
evazion
2018-09-12 00:08:28 -05:00
parent 37fc215d75
commit 0df5937d33

View File

@@ -19,7 +19,7 @@
<% if ImageProxy.needs_proxy?(url) %>
<%= image_tag(image_proxy_uploads_path(url: preview_url)) %>
<% elsif url.is_a?(String) %>
<%= image_tag url %>
<%= image_tag preview_url %>
<% else %>
Direct Link
<% end %>