Get note comment notification working again
This commit is contained in:
parent
91b3d1a83f
commit
92ce228cbe
5 changed files with 32 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue