Get note comment notification working again

This commit is contained in:
Tom Hughes 2012-10-14 11:56:00 +01:00
parent 91b3d1a83f
commit 92ce228cbe
5 changed files with 32 additions and 23 deletions

View file

@ -319,11 +319,11 @@ private
attributes[:author_name] = name + " (a)"
end
note.comments.create(attributes, :without_protection => true)
comment = note.comments.create(attributes, :without_protection => true)
note.comments.map { |c| c.author }.uniq.each do |user|
if user and user != @user
Notifier.deliver_note_comment_notification(comment, user)
Notifier.note_comment_notification(comment, user).deliver
end
end
end