Remove HTML data attributes from thumbnails #4943

Remove most data attributes from thumbnails, except the ones used by our
own Javascript.
This commit is contained in:
evazion
2021-12-16 15:48:07 -06:00
parent c3f61a5888
commit 379775d10d
3 changed files with 25 additions and 24 deletions

View File

@@ -44,7 +44,7 @@
<%= render "posts/partials/show/notices", :post => @post %>
<%= tag.section class: ["image-container", "note-container", ("danbirthday" if is_danbirthday?(@post))], **PostPreviewComponent.new(post: @post).data_attributes do -%>
<%= tag.section class: ["image-container", "note-container", ("danbirthday" if is_danbirthday?(@post))], **image_container_data_attributes(@post, CurrentUser.user) do -%>
<%= render "posts/partials/show/embedded", post: @post %>
<div id="note-preview"></div>
<% end -%>