FIX: Broken link in new user of the month post.

This commit is contained in:
Guo Xiang Tan 2017-10-30 13:11:29 +08:00
parent ddd07773da
commit 0abc5f90cd
2 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,11 @@ module Jobs
user = User.find(user_id) user = User.find(user_id)
if user.badges.where(id: Badge::NewUserOfTheMonth).blank? if user.badges.where(id: Badge::NewUserOfTheMonth).blank?
BadgeGranter.grant(badge, user) 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 end
end end

View File

@ -2412,7 +2412,7 @@ en:
text_body_template: | text_body_template: |
Congratulations, you've earned the **New User of the Month award for %{month_year}**. :trophy: Congratulations, you've earned the **New User of the Month award for %{month_year}**. :trophy:
This award is only granted to two new users per month, and it will be permanently visible on [your user page](%{base_url}/my/badges). This award is only granted to two new users per month, and it will be permanently visible on [the badges page](%{url}).
You've quickly become a valuable member of our community. Thanks for joining, and keep up the great work! You've quickly become a valuable member of our community. Thanks for joining, and keep up the great work!