mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 13:24:40 +08:00
notify moderators now goes to the "community" user, that saves our poor mods from a flood of pms
if any staff respond to a pm they are automatically added to the list of recipients and will start getting email notifications
This commit is contained in:
21
db/fixtures/users.rb
Normal file
21
db/fixtures/users.rb
Normal file
@ -0,0 +1,21 @@
|
||||
user = User.where("id <> -1 and username_lower = 'community'").first
|
||||
if user
|
||||
user.username = UserNameSuggester.suggest('community')
|
||||
user.save
|
||||
end
|
||||
|
||||
User.seed do |u|
|
||||
u.id = -1
|
||||
u.name = 'Community'
|
||||
u.username = 'community'
|
||||
u.username_lower = 'community'
|
||||
u.email = 'no_email'
|
||||
u.password = SecureRandom.hex
|
||||
u.bio_raw = 'I am a community user, I clean up the forum and make sure it runs well.'
|
||||
u.active = true
|
||||
u.admin = true
|
||||
u.moderator = true
|
||||
u.email_direct = false
|
||||
u.approved = true
|
||||
u.email_private_messages = false
|
||||
end
|
Reference in New Issue
Block a user