mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for follow_count with compute scores
This commit is contained in:
parent
0d2e2afb35
commit
f1f91763fb
1 changed files with 1 additions and 1 deletions
|
@ -1269,7 +1269,7 @@ class Site < Sequel::Model
|
|||
|
||||
def compute_score
|
||||
points = 0
|
||||
points += follow_count * 30
|
||||
points += (follow_count || 0) * 30
|
||||
points += profile_comments_dataset.count * 1
|
||||
points += views / 1000
|
||||
points += 20 if !featured_at.nil?
|
||||
|
|
Loading…
Add table
Reference in a new issue