mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
Grant system badges in a background job.
This commit is contained in:
@ -60,7 +60,7 @@ class Promotion
|
||||
@user.user_profile.recook_bio
|
||||
@user.user_profile.save!
|
||||
Group.user_trust_level_change!(@user.id, @user.trust_level)
|
||||
BadgeGranter.update_badges(@user, trust_level: @user.trust_level)
|
||||
BadgeGranter.update_badges(action: :trust_level_change, user_id: @user.id)
|
||||
end
|
||||
|
||||
true
|
||||
|
Reference in New Issue
Block a user