FEATURE: Two new badges - First Emoji and First Mention

This commit is contained in:
Robin Ward
2016-04-05 15:12:02 -04:00
parent 56e47c8d7e
commit c30d327b77
9 changed files with 380 additions and 255 deletions

View File

@@ -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