mirror of
https://github.com/neocities/neocities.git
synced 2025-08-27 03:13:26 +02:00
info link for browse
This commit is contained in:
parent
c8821f4a24
commit
8177e9eaf2
2 changed files with 3 additions and 2 deletions
|
@ -77,7 +77,7 @@ def browse_sites_dataset
|
|||
ds = ds.exclude site_updated_at: nil
|
||||
ds = ds.order :site_updated_at.desc
|
||||
when 'newest'
|
||||
ds = ds.where{views > Site::BROWSE_MINIMUM_VIEWS} unless is_admin?
|
||||
ds = ds.where{views > Site::BROWSE_MINIMUM_VIEWS} unless current_site && current_site.is_admin
|
||||
ds = ds.exclude site_updated_at: nil
|
||||
ds = ds.order :created_at.desc, :views.desc
|
||||
when 'oldest'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue