From cd05cdd44f31d41db024086cd674a994c8c211f1 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Thu, 2 May 2024 11:41:41 -0500 Subject: [PATCH] dont exclude comments on news feed just for nsfw marking --- models/event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/event.rb b/models/event.rb index 6207755a..f59fb4e8 100644 --- a/models/event.rb +++ b/models/event.rb @@ -27,7 +27,7 @@ class Event < Sequel::Model def self.news_feed_default_dataset if SimpleCache.expired?(:excluded_actioning_site_ids) - res = DB[%{select distinct(actioning_site_id) from events join sites on actioning_site_id=sites.id where sites.is_banned='t' or sites.is_nsfw='t' or sites.is_deleted='t'}].all.collect {|r| r[:actioning_site_id]} + res = DB[%{select distinct(actioning_site_id) from events join sites on actioning_site_id=sites.id where sites.is_deleted='t'}].all.collect {|r| r[:actioning_site_id]} excluded_actioning_site_ids = SimpleCache.store :excluded_actioning_site_ids, res, 2.hours else excluded_actioning_site_ids = SimpleCache.get :excluded_actioning_site_ids