/upload/batch: use image proxy for embedded thumbnails.
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user