FIX: New badges were missing post link

This commit is contained in:
Robin Ward 2016-04-13 16:38:24 -04:00
parent 95854a94c9
commit b0803f7035
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D

View file

@ -49,8 +49,8 @@ class CookedPostProcessor
def grant_badges
return unless Guardian.new.can_see?(@post)
BadgeGranter.grant(Badge.find(Badge::FirstEmoji), @post.user) if has_emoji?
BadgeGranter.grant(Badge.find(Badge::FirstOnebox), @post.user) if @has_oneboxes
BadgeGranter.grant(Badge.find(Badge::FirstEmoji), @post.user, post_id: @post.id) if has_emoji?
BadgeGranter.grant(Badge.find(Badge::FirstOnebox), @post.user, post_id: @post.id) if @has_oneboxes
end
def keep_reverse_index_up_to_date