Skip to content

Commit 1f789bd

Browse files
committed
Ensure that the attachment is passed to the proxy helper, not the content block
1 parent 4b3b0e8 commit 1f789bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/better_together/content/blocks/_image.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<%= cache image.cache_key_with_version do %>
33
<% if image.caption.present? || image.attribution.present? %>
44
<figure class="figure text-center w-100">
5-
<%= image_tag rails_storage_proxy_url(image), class: 'figure-img img-fluid d-block mx-auto', alt: image.alt_text %>
5+
<%= image_tag rails_storage_proxy_url(image.media), class: 'figure-img img-fluid d-block mx-auto', alt: image.alt_text %>
66

77
<figcaption class="figure-caption text-center">
88
<% if image.caption.present? %>
@@ -25,7 +25,7 @@
2525
</figcaption>
2626
</figure>
2727
<% else %>
28-
<%= image_tag rails_storage_proxy_url(image), class: 'img-fluid d-block mx-auto', alt: image.alt_text %>
28+
<%= image_tag rails_storage_proxy_url(image.media), class: 'img-fluid d-block mx-auto', alt: image.alt_text %>
2929
<% end %>
3030
<% end %>
3131
<% end %>

0 commit comments

Comments
 (0)