mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Add supporter child sites to supporter list
This commit is contained in:
parent
9e5dbfa2c6
commit
f225c7c336
1 changed files with 2 additions and 3 deletions
|
@ -62,9 +62,8 @@ def browse_sites_dataset
|
||||||
when 'followers'
|
when 'followers'
|
||||||
ds = ds.order :follow_count.desc, :updated_at.desc
|
ds = ds.order :follow_count.desc, :updated_at.desc
|
||||||
when 'supporters'
|
when 'supporters'
|
||||||
ds = ds.exclude plan_type: nil
|
ds = ds.where id: Site.supporter_ids
|
||||||
ds = ds.exclude plan_type: 'free'
|
ds = ds.order :follow_count.desc, :views.desc, :site_updated_at.desc
|
||||||
ds = ds.order :views.desc, :site_updated_at.desc
|
|
||||||
when 'featured'
|
when 'featured'
|
||||||
ds = ds.exclude featured_at: nil
|
ds = ds.exclude featured_at: nil
|
||||||
ds = ds.order :featured_at.desc
|
ds = ds.order :featured_at.desc
|
||||||
|
|
Loading…
Add table
Reference in a new issue