mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
prevent deleted comments from showing in profile
This commit is contained in:
parent
aa20d39141
commit
c77299cd05
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ class Comment < Sequel::Model
|
|||
many_to_one :actioning_site, class: :Site
|
||||
one_to_many :comment_likes
|
||||
|
||||
dataset.exclude! is_deleted: true
|
||||
|
||||
def liking_site_titles
|
||||
comment_likes_dataset.select(:id, :actioning_site_id).all.collect do |comment_like|
|
||||
comment_like.actioning_site_dataset.select(:username,:domain,:title).first.title
|
||||
|
|
Loading…
Add table
Reference in a new issue