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:
Sam
2013-09-06 14:07:23 +10:00
parent c495a0b996
commit 41a1b6942d
15 changed files with 635 additions and 583 deletions

21
db/fixtures/users.rb Normal file
View 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

View File