Small adjustment to blackbox.rb (#10961)

This commit is contained in:
Ben Halpern 2020-10-20 21:14:56 -04:00 committed by GitHub
parent f428aa85fc
commit dc91840a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,9 @@ class BlackBox
if usable_date < 4.days.ago
reaction_points /= 2 # Older posts should fade
end
if usable_date < 7.days.ago
reaction_points /= 4 # Older posts should fade
end
if article.decorate.cached_tag_list_array.include?("watercooler")
reaction_points = (reaction_points * 0.8).to_i # watercooler posts shouldn't get as much love in feed
end