diff --git a/app/views/comment_mailer/comment_notification.html.erb b/app/views/comment_mailer/comment_notification.html.erb index a1bbfde73ee..fb90ab9363f 100644 --- a/app/views/comment_mailer/comment_notification.html.erb +++ b/app/views/comment_mailer/comment_notification.html.erb @@ -9,7 +9,7 @@ <%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %>: <% end %> - <%= style_quote(raw @comment.sanitized_content) %> + <%= style_quote(raw(@comment.sanitized_content)) %> <%= render 'comment_notification_footer' %> diff --git a/app/views/comment_mailer/comment_reply_notification.html.erb b/app/views/comment_mailer/comment_reply_notification.html.erb index 0d24672b5ac..ff696aefb71 100644 --- a/app/views/comment_mailer/comment_reply_notification.html.erb +++ b/app/views/comment_mailer/comment_reply_notification.html.erb @@ -1,24 +1,24 @@ <% content_for :message do %> <%= commenter_pseud_or_name_link(@comment) %> replied to your comment on - + <% if @comment.ultimate_parent.is_a?(Tag) %> the tag <%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>: <% else %> <%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %>: <% end %> - +

You wrote: <%= style_quote(raw @your_comment.sanitized_content) %>

- +

<%= commenter_pseud_or_name_link(@comment) %> responded: - <%= style_quote(raw @comment.sanitized_content) %> + <%= style_quote(raw(@comment.sanitized_content)) %>

- + <%= render 'comment_notification_footer' %> <% end %> diff --git a/app/views/comment_mailer/edited_comment_notification.html.erb b/app/views/comment_mailer/edited_comment_notification.html.erb index f9688d65711..d77fd1e42b4 100644 --- a/app/views/comment_mailer/edited_comment_notification.html.erb +++ b/app/views/comment_mailer/edited_comment_notification.html.erb @@ -1,7 +1,7 @@ <% content_for :message do %> <%= commenter_pseud_or_name_link(@comment) %> edited the following comment on - + <% if @comment.ultimate_parent.is_a?(Tag) %> the tag <%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>: @@ -10,7 +10,7 @@ <% end %>

- <%= style_quote(raw @comment.sanitized_content) %> + <%= style_quote(raw(@comment.sanitized_content)) %>

<%= render 'comment_notification_footer' %> diff --git a/app/views/comment_mailer/edited_comment_reply_notification.html.erb b/app/views/comment_mailer/edited_comment_reply_notification.html.erb index 7049eeb9a2a..fd067f5b1f1 100644 --- a/app/views/comment_mailer/edited_comment_reply_notification.html.erb +++ b/app/views/comment_mailer/edited_comment_reply_notification.html.erb @@ -1,24 +1,24 @@ <% content_for :message do %> <%= commenter_pseud_or_name_link(@comment) %> edited their reply to your comment on - + <% if @comment.ultimate_parent.is_a?(Tag) %> the tag <%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>: <% else %> <%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %>: <% end %> - +

You wrote: <%= style_quote(raw @your_comment.sanitized_content) %>

- +

<%= commenter_pseud_or_name_link(@comment) %> edited their response to: - <%= style_quote(raw @comment.sanitized_content) %> + <%= style_quote(raw(@comment.sanitized_content)) %>

- + <%= render 'comment_notification_footer' %> <% end %>