diff --git a/app/models/user.rb b/app/models/user.rb index 574152f564d..e3973089c59 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -492,7 +492,7 @@ class User < ActiveRecord::Base end def badge_count - user_badges.count + user_badges.select('distinct badge_id').count end def featured_user_badges