mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
make follows use overwritten dataset
This commit is contained in:
parent
c4995ce262
commit
525065e2f0
1 changed files with 4 additions and 0 deletions
|
@ -537,6 +537,10 @@ class Site < Sequel::Model
|
|||
super.select_all(:follows).inner_join(:sites, :id=>:actioning_site_id).exclude(:sites__is_deleted => true).order(:score.desc)
|
||||
end
|
||||
|
||||
def follows
|
||||
follows_dataset.all
|
||||
end
|
||||
|
||||
def profile_follows_actioning_ids
|
||||
follows_dataset.select(:actioning_site_id).exclude(:sites__site_changed => false).all
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue