From d45f2c5898617514e9f8a665d03c0ac573d59be4 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Tue, 16 Apr 2019 16:41:16 -0400 Subject: [PATCH] Adjust badge streak copy (#2467) --- app/labor/badge_rewarder.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/labor/badge_rewarder.rb b/app/labor/badge_rewarder.rb index a5f3ba5a0..3cb9e9655 100644 --- a/app/labor/badge_rewarder.rb +++ b/app/labor/badge_rewarder.rb @@ -57,7 +57,11 @@ module BadgeRewarder def self.award_streak_badge(num_weeks) article_user_ids = Article.published.where("published_at > ? AND score > ?", 1.week.ago, -25).pluck(:user_id) # No cred for super low quality - message = "Congrats on achieving this streak! Consistent writing is hard. The next streak badge you can get is the #{num_weeks * 2} Week Badge. 😉" + message = if num_weeks == 16 + "16 weeks! You've achieved the longest DEV writing streak possible. This makes you eligible for special quests in the future. Keep up the amazing contributions to our community!" + else + "Congrats on achieving this streak! Consistent writing is hard. The next streak badge you can get is the #{num_weeks * 2} Week Badge. 😉" + end users = User.where(id: article_user_ids).where("articles_count >= ?", num_weeks) usernames = [] users.find_each do |user|