[openstreetmap/openstreetmap-website] Diary entry comment subscriptions (#1309)
notifications at github.com
Tue Oct 4 09:54:56 UTC 2016
tomhughes commented on this pull request.
> @@ -57,10 +61,17 @@ def comment
@diary_comment = @entry.comments.build(comment_params)
@diary_comment.user = @user
- if @diary_comment.user != @entry.user
+ # Notify current subscribers of the new comment
+ @entry.subscribers.visible.each do |user|
+ if @user != user
Well the two are the same as `@diary_comment.user` has just been set from `@user` so it doesn't really matter too much.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev