mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Broken link in new user of the month post.
This commit is contained in:
@@ -22,7 +22,11 @@ module Jobs
|
||||
user = User.find(user_id)
|
||||
if user.badges.where(id: Badge::NewUserOfTheMonth).blank?
|
||||
BadgeGranter.grant(badge, user)
|
||||
SystemMessage.new(user).create('new_user_of_the_month', month_year: Time.now.strftime("%B %Y"))
|
||||
|
||||
SystemMessage.new(user).create('new_user_of_the_month',
|
||||
month_year: Time.now.strftime("%B %Y"),
|
||||
url: "#{Discourse.base_url}/badges"
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user