]> cat aescling's git repositories - mastodon.git/commitdiff
Change half-life of trending status scores from 6 hours to 2 hours (#18182)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 29 Apr 2022 09:46:59 +0000 (11:46 +0200)
committersingle-right-quote <11325618-aescling@users.noreply.gitlab.com>
Thu, 5 May 2022 17:49:12 +0000 (13:49 -0400)
app/models/trends/statuses.rb

index 0ebda0fe1793137b057036d84700bfc580015e6b..e81d0936f9d4a4c2c509a9523bb784532ff783b9 100644 (file)
@@ -6,7 +6,7 @@ class Trends::Statuses < Trends::Base
   self.default_options = {
     threshold: 5,
     review_threshold: 3,
-    score_halflife: 6.hours.freeze,
+    score_halflife: 2.hours.freeze,
   }
 
   class Query < Trends::Query