diff --git a/models/site.rb b/models/site.rb index 6b911977..80eed12f 100644 --- a/models/site.rb +++ b/models/site.rb @@ -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?