mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 06:58:31 +08:00
FIX: Skip notifications about beginner badges (#12819)
This commit is contained in:

committed by
GitHub

parent
886f4b589e
commit
f7aeb257ee
@ -305,6 +305,10 @@ class Badge < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
def for_beginners?
|
||||
id == Welcome || (badge_grouping_id == BadgeGrouping::GettingStarted && id != NewUserOfTheMonth)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def ensure_not_system
|
||||
|
Reference in New Issue
Block a user