]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
fixed a small mistake
authorAidan Cornelius-Bell <[email protected]>
Mon, 16 Jun 2025 04:00:34 +0000 (13:30 +0930)
committerAidan Cornelius-Bell <[email protected]>
Mon, 16 Jun 2025 04:00:34 +0000 (13:30 +0930)
app/views/pubview/index.html.erb

index 25794af0c85127fdc475e8afeac326c43cf6c4d5..a906d5a9585626a442b7287e8754db8243b199f5 100644 (file)
@@ -24,7 +24,7 @@
             <span class="dash">&mdash;</span>
             <span class="meta">posted <%= item.published_at.strftime('%d/%m/%y') %>, tagged with <%= raw item.format_tags %></span>
             <main class="home-full-content full-content">
-              <% if item.audio.present? && @post.audio.file.attached? %>
+              <% if item.audio.present? && item.audio.file.attached? %>
                   <%= render partial: "shared/audio_player", locals: { audio: item.audio } %>
               <% end %>
               <%= raw item.rendered_content.html_safe %>