mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +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)
|
super.select_all(:follows).inner_join(:sites, :id=>:actioning_site_id).exclude(:sites__is_deleted => true).order(:score.desc)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def follows
|
||||||
|
follows_dataset.all
|
||||||
|
end
|
||||||
|
|
||||||
def profile_follows_actioning_ids
|
def profile_follows_actioning_ids
|
||||||
follows_dataset.select(:actioning_site_id).exclude(:sites__site_changed => false).all
|
follows_dataset.select(:actioning_site_id).exclude(:sites__site_changed => false).all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue