mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 18:16:07 +02:00
add new followers from last month to site profiles
This commit is contained in:
parent
e908bab348
commit
d1f60254a6
3 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue