exclude nsfw from global feed

This commit is contained in:
Kyle Drake 2024-08-30 00:15:27 -05:00
parent 8a96e65f9f
commit 123d05d685

View file

@ -44,7 +44,8 @@ class Event < Sequel::Model
news_feed_default_dataset.where( news_feed_default_dataset.where(
Sequel.expr(Sequel[:sites][:score] > GLOBAL_SCORE_LIMIT) | Sequel.expr(Sequel[:sites][:score] > GLOBAL_SCORE_LIMIT) |
Sequel.expr(Sequel[:actioning_sites][:score] > GLOBAL_SCORE_LIMIT) Sequel.expr(Sequel[:actioning_sites][:score] > GLOBAL_SCORE_LIMIT)
) ).
exclude(sites__is_nsfw: true)
end end
def created_by?(site) def created_by?(site)