about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-02 18:11:13 +0200
committerGitHub <noreply@github.com>2019-09-02 18:11:13 +0200
commit70ddef2654a931827ce5e4323e3042365f6078f2 (patch)
tree05ed40d6d1b218a5131199c88d0c9cd1fa0091a0 /app/lib
parentac6935b629f5e9cd07cca468a6f3588a6e585e25 (diff)
Change trending hashtags to not disappear instantly after midnight (#11712)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/feed_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index ca3d890a8..871ec5c19 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -63,7 +63,7 @@ class FeedManager
     reblog_key   = key(type, account_id, 'reblogs')
 
     # Remove any items past the MAX_ITEMS'th entry in our feed
-    redis.zremrangebyrank(timeline_key, '0', (-(FeedManager::MAX_ITEMS + 1)).to_s)
+    redis.zremrangebyrank(timeline_key, 0, -(FeedManager::MAX_ITEMS + 1))
 
     # Get the score of the REBLOG_FALLOFF'th item in our feed, and stop
     # tracking anything after it for deduplication purposes.