mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Don't limit the count of badges to 96
This commit is contained in:
parent
05f0db0a20
commit
a656a672a1
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class UserBadgesController < ApplicationController
|
|||
if params[:username]
|
||||
user_id = User.where(username_lower: params[:username].downcase).pluck(:id).first
|
||||
user_badges = user_badges.where(user_id: user_id) if user_id
|
||||
grant_count = user_badges.count
|
||||
grant_count = badge.user_badges.where(user_id: user_id).count
|
||||
end
|
||||
|
||||
if offset = params[:offset]
|
||||
|
|
Loading…
Reference in a new issue