From ed6766ccad199eaa754ae326cfc899a0a95b211b Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 18 Jul 2014 15:57:03 +1000 Subject: [PATCH] FEATURE: push Reader up to 100 --- app/models/badge.rb | 2 +- config/locales/client.en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/badge.rb b/app/models/badge.rb index 7e9692abb..e74dcfe15 100644 --- a/app/models/badge.rb +++ b/app/models/badge.rb @@ -31,7 +31,7 @@ class Badge < ActiveRecord::Base b.topic_id = pt.topic_id JOIN topics t ON t.id = pt.topic_id LEFT JOIN user_badges ub ON ub.badge_id = 17 AND ub.user_id = pt.user_id - WHERE ub.id IS NULL AND t.posts_count > 50 + WHERE ub.id IS NULL AND t.posts_count > 100 GROUP BY pt.user_id, pt.topic_id, t.posts_count HAVING count(*) = t.posts_count ) diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 26c0613d9..3dc547b1e 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2024,4 +2024,4 @@ en: description: Read the community guidelines reader: name: Reader - description: Read every post in a topic with more than 50 posts + description: Read every post in a topic with more than 100 posts