mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix for supporter browse with tags
This commit is contained in:
parent
29dfe755fa
commit
5916501e94
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ 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.where id: Site.supporter_ids
|
ds = ds.where sites__id: Site.supporter_ids
|
||||||
ds = ds.order :follow_count.desc, :views.desc, :site_updated_at.desc
|
ds = ds.order :follow_count.desc, :views.desc, :site_updated_at.desc
|
||||||
when 'featured'
|
when 'featured'
|
||||||
ds = ds.exclude featured_at: nil
|
ds = ds.exclude featured_at: nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue