fix.diff
| app/models/message_observer.rb (working copy) | ||
|---|---|---|
| 21 | 21 |
recipients = ([message.root] + message.root.children).collect {|m| m.author.mail if m.author && m.author.active?}
|
| 22 | 22 |
# send notification to the board watchers |
| 23 | 23 |
recipients += message.board.watcher_recipients |
| 24 |
# send notification to all users in the project who want to know all |
|
| 25 |
recipients += message.board.project.users.select {|u| u.mail_notification}.map {|u| u.mail}
|
|
| 26 | 24 |
recipients = recipients.compact.uniq |
| 27 | 25 |
Mailer.deliver_message_posted(message, recipients) if !recipients.empty? && Setting.notified_events.include?('message_posted')
|
| 28 | 26 |
end |