docbrown/app/services/badges/award_fab_five.rb
Philip How fb855c97bd
Update badge awarding language (#20516)
* update badge language files

* update admin controller

* fix tests

* no actually fix the tests

* remove 'community' from notification

* fix spec

* fix interpolations
2024-01-17 09:26:19 -05:00

17 lines
418 B
Ruby

module Badges
class AwardFabFive
BADGE_SLUG = "fab-5".freeze
def self.call(usernames, message_markdown = default_message_markdown)
::Badges::Award.call(
User.where(username: usernames),
BADGE_SLUG,
message_markdown,
)
end
def self.default_message_markdown
I18n.t("services.badges.congrats", community: Settings::Community.community_name)
end
end
end