mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-30 16:04:36 -04:00
FIX: New badges were missing post link
This commit is contained in:
parent
95854a94c9
commit
b0803f7035
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ class CookedPostProcessor
|
||||||
def grant_badges
|
def grant_badges
|
||||||
return unless Guardian.new.can_see?(@post)
|
return unless Guardian.new.can_see?(@post)
|
||||||
|
|
||||||
BadgeGranter.grant(Badge.find(Badge::FirstEmoji), @post.user) if has_emoji?
|
BadgeGranter.grant(Badge.find(Badge::FirstEmoji), @post.user, post_id: @post.id) if has_emoji?
|
||||||
BadgeGranter.grant(Badge.find(Badge::FirstOnebox), @post.user) if @has_oneboxes
|
BadgeGranter.grant(Badge.find(Badge::FirstOnebox), @post.user, post_id: @post.id) if @has_oneboxes
|
||||||
end
|
end
|
||||||
|
|
||||||
def keep_reverse_index_up_to_date
|
def keep_reverse_index_up_to_date
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue