add new followers from last month to site profiles

This commit is contained in:
Kyle Drake 2023-05-11 13:23:22 -05:00
parent e908bab348
commit d1f60254a6
3 changed files with 24 additions and 3 deletions

View file

@ -1448,6 +1448,10 @@ class Site < Sequel::Model
paginate(current_page, limit)
end
def newest_follows
follows_dataset.where(:follows__created_at => (1.month.ago..Time.now)).all
end
def host
!domain.empty? ? domain : "#{username}.neocities.org"
end