mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
Fix tag score not being updated when the tag is trending (#11465)
This commit is contained in:
parent
2dee293c4c
commit
29609c09f4
|
@ -49,7 +49,7 @@ class TrendingTags
|
||||||
else
|
else
|
||||||
score = ((observed - expected)**2) / expected
|
score = ((observed - expected)**2) / expected
|
||||||
added = redis.zadd(key, score, tag_id.to_s)
|
added = redis.zadd(key, score, tag_id.to_s)
|
||||||
bump_tag_score!(tag_id) if added == 1
|
bump_tag_score!(tag_id) if added
|
||||||
end
|
end
|
||||||
|
|
||||||
redis.expire(key, EXPIRE_TRENDS_AFTER)
|
redis.expire(key, EXPIRE_TRENDS_AFTER)
|
||||||
|
|
Loading…
Reference in a new issue