mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont show events for sites flagged nsfw
This commit is contained in:
parent
6080a2c591
commit
b47aef9205
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class Event < Sequel::Model
|
|||
join_table(:inner, :sites, id: :site_id).
|
||||
exclude(Sequel.qualify(:sites, :is_deleted) => true).
|
||||
exclude(Sequel.qualify(:events, :is_deleted) => true).
|
||||
exclude(Sequel.qualify(:sites, :is_nsfw) => true).
|
||||
exclude(is_banned: true)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue