mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
exclude nsfw from global feed
This commit is contained in:
parent
8a96e65f9f
commit
123d05d685
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue