about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/trending_tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/trending_tags.rb b/app/models/trending_tags.rb
index 34a4abbc5..211c8f1dc 100644
--- a/app/models/trending_tags.rb
+++ b/app/models/trending_tags.rb
@@ -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)