fix.diff

Pawel Pokrywka, 2008-04-19 14:25

Download (795 Bytes)

View differences:

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}
24 26
    recipients = recipients.compact.uniq
25 27
    Mailer.deliver_message_posted(message, recipients) if !recipients.empty? && Setting.notified_events.include?('message_posted')
26 28
  end