Skip to content

Commit

Permalink
Add score to replies_count
Browse files Browse the repository at this point in the history
  • Loading branch information
Teqed committed Feb 13, 2024
1 parent 0c4718a commit 560e89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trends/statuses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def eligible?(status)
def calculate_scores(statuses, at_time)
items = statuses.map do |status|
expected = 1.0
observed = (status.reblogs_count + status.favourites_count).to_f
observed = (status.replies_count + status.reblogs_count + status.favourites_count).to_f

score = if expected > observed || observed < options[:threshold]
0
Expand Down

0 comments on commit 560e89c

Please sign in to comment.