Skip to content
Snippets Groups Projects
Unverified Commit 29609c09 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix tag score not being updated when the tag is trending (#11465)

parent 2dee293c
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class TrendingTags
else
score = ((observed - expected)**2) / expected
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
redis.expire(key, EXPIRE_TRENDS_AFTER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment