mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FEATURE: Welcome moderator message - add copy! (#8246)
This commit is contained in:
parent
6de49b88df
commit
437edfc415
@ -20,6 +20,7 @@ module Roleable
|
||||
|
||||
def grant_moderation!
|
||||
set_permission('moderator', true)
|
||||
enqueue_welcome_moderator_message
|
||||
end
|
||||
|
||||
def revoke_moderation!
|
||||
|
@ -415,6 +415,11 @@ class User < ActiveRecord::Base
|
||||
Jobs.enqueue(:send_system_message, user_id: id, message_type: "welcome_tl1_user")
|
||||
end
|
||||
|
||||
def enqueue_welcome_moderator_message
|
||||
return unless moderator
|
||||
Jobs.enqueue(:send_system_message, user_id: id, message_type: 'welcome_moderator')
|
||||
end
|
||||
|
||||
def change_username(new_username, actor = nil)
|
||||
UsernameChanger.change(self, new_username, actor)
|
||||
end
|
||||
|
@ -2659,6 +2659,13 @@ en:
|
||||
|
||||
We’re really glad you’re spending time with us and we’d love to know more about you. Take a moment to [fill out your profile](%{base_url}/my/preferences/profile), or feel free to [start a new topic](%{base_url}/categories).
|
||||
|
||||
welcome_moderator:
|
||||
title: "Welcome Moderator"
|
||||
subject_template: "Congratulations on becoming a moderator!"
|
||||
text_body_template: |
|
||||
You are now a moderator. -- congratulations!
|
||||
|
||||
You now have access to the <a href='%{base_url}/admin' target='_blank'>admin interface</a>
|
||||
welcome_invite:
|
||||
title: "Welcome Invite"
|
||||
subject_template: "Welcome to %{site_name}!"
|
||||
|
Loading…
Reference in New Issue
Block a user