mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: show avatar flair on group, badges and directory pages (#6732)
This commit is contained in:
@ -6,7 +6,7 @@ class UserBadgesController < ApplicationController
|
||||
|
||||
badge = fetch_badge_from_params
|
||||
user_badges = badge.user_badges.order('granted_at DESC, id DESC').limit(96)
|
||||
user_badges = user_badges.includes(:user, :granted_by, badge: :badge_type, post: :topic)
|
||||
user_badges = user_badges.includes(:user, :granted_by, badge: :badge_type, post: :topic, user: :primary_group)
|
||||
|
||||
grant_count = nil
|
||||
|
||||
|
Reference in New Issue
Block a user