mirror of
https://github.com/neocities/neocities.git
synced 2025-07-23 19:10:40 +02:00
fix deleted comments not being hidden
This commit is contained in:
parent
de669d86cb
commit
bd45dfdab6
2 changed files with 12 additions and 4 deletions
|
@ -140,10 +140,10 @@
|
|||
<%== erb :'_news_actions', layout: false, locals: {event: event} %>
|
||||
<% end %>
|
||||
|
||||
<% if event.comments_dataset.count > 0 %>
|
||||
<% if event.undeleted_comments_count > 0 %>
|
||||
<div class="content">
|
||||
<div class="comments">
|
||||
<% event.comments.each do |comment| %>
|
||||
<% event.undeleted_comments.each do |comment| %>
|
||||
<% comment_actioning_site = comment.actioning_site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id, :plan_type).first %>
|
||||
<% comment_event_site = comment.event.site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id, :plan_type).first %>
|
||||
<div class="comment" id="comment_<%= comment.id %>">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue