mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
fix a very stupid events bug where missing period prevented additional filters for deleted, banned, etc
This commit is contained in:
parent
8bcd123206
commit
e908bab348
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Event < Sequel::Model
|
||||||
ds = select_all(:events).
|
ds = select_all(:events).
|
||||||
order(:created_at.desc).
|
order(:created_at.desc).
|
||||||
join_table(:inner, :sites, id: :site_id).
|
join_table(:inner, :sites, id: :site_id).
|
||||||
where(follow_id: nil)
|
where(follow_id: nil).
|
||||||
exclude(Sequel.qualify(:sites, :is_deleted) => true).
|
exclude(Sequel.qualify(:sites, :is_deleted) => true).
|
||||||
exclude(Sequel.qualify(:events, :is_deleted) => true).
|
exclude(Sequel.qualify(:events, :is_deleted) => true).
|
||||||
exclude(is_banned: true)
|
exclude(is_banned: true)
|
||||||
|
|
Loading…
Add table
Reference in a new issue