0
0
Fork 0

Change trending hashtags to not disappear instantly after midnight (#11712)

This commit is contained in:
Eugen Rochko 2019-09-02 18:11:13 +02:00 committed by GitHub
parent ac6935b629
commit 70ddef2654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 179 additions and 37 deletions

View file

@ -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.