mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Two new badges - First Emoji and First Mention
This commit is contained in:
@@ -102,6 +102,12 @@ class BadgeGranter
|
||||
type: "PostAction",
|
||||
post_ids: [action.post_id, action.related_post_id].compact!
|
||||
}
|
||||
when Badge::Trigger::PostProcessed
|
||||
user = opt[:user]
|
||||
payload = {
|
||||
type: "PostProcessed",
|
||||
user_ids: [user.id]
|
||||
}
|
||||
end
|
||||
|
||||
$redis.lpush queue_key, payload.to_json if payload
|
||||
|
||||
Reference in New Issue
Block a user