Change trending hashtags to not disappear instantly after midnight (#11712)
This commit is contained in:
parent
ac6935b629
commit
70ddef2654
10 changed files with 179 additions and 37 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue