mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
FIX: Allow Reader badge if you over read a topic
This commit is contained in:
parent
10e2c3f693
commit
8ba8846589
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Badge < ActiveRecord::Base
|
|||
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 > 100
|
||||
GROUP BY pt.user_id, pt.topic_id, t.posts_count
|
||||
HAVING count(*) = t.posts_count
|
||||
HAVING count(*) >= t.posts_count
|
||||
)
|
||||
SQL
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue