From 4ac56f4568ac4b9b477c3f3e50a461ab0104245d Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Mon, 16 Jun 2025 13:30:34 +0930 Subject: [PATCH] fixed a small mistake --- app/views/pubview/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index 25794af..a906d5a 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -24,7 +24,7 @@ posted <%= item.published_at.strftime('%d/%m/%y') %>, tagged with <%= raw item.format_tags %>
- <% 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 %> -- 2.39.5