/upload/batch: use image proxy for embedded thumbnails.

This commit is contained in:
evazion
2017-06-27 13:46:59 -05:00
parent 281ddae35d
commit e3a4bfd28c

View File

@@ -10,7 +10,11 @@
</p>
<%= link_to new_upload_path(url: url, ref: params[:url]), target: "_blank" do %>
<%= image_tag url %>
<% if ImageProxy.needs_proxy?(url) %>
<%= image_tag(image_proxy_uploads_path(url: url)) %>
<% else %>
<%= image_tag url %>
<% end %>
<% end %>
</div>
<% end %>