1
0
Fork 0
forked from fedi/mastodon

Change score half-life for trending posts from 2 hours to 1 hour (#26915)

This commit is contained in:
Eugen Rochko 2023-09-14 09:20:14 +02:00 committed by GitHub
parent a04ae16201
commit fc6825055b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ class Trends::Statuses < Trends::Base
self.default_options = { self.default_options = {
threshold: 5, threshold: 5,
review_threshold: 3, review_threshold: 3,
score_halflife: 2.hours.freeze, score_halflife: 1.hour.freeze,
decay_threshold: 0.3, decay_threshold: 0.3,
} }