Commit 8aad796b15f001e0de5d51d50975ef0b231343a3
1 parent
252ec20a
Exists in
master
and in
8 other branches
No need for notice after removing/marking as spam
comment removals and spam marking happens through AJAX ActionItem2306
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
@@ -155,7 +155,6 @@ class ContentViewerController < ApplicationController | @@ -155,7 +155,6 @@ class ContentViewerController < ApplicationController | ||
155 | @comment = @page.comments.find(params[:remove_comment]) | 155 | @comment = @page.comments.find(params[:remove_comment]) |
156 | if (user == @comment.author || user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) | 156 | if (user == @comment.author || user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) |
157 | @comment.destroy | 157 | @comment.destroy |
158 | - session[:notice] = _('Comment succesfully deleted') | ||
159 | end | 158 | end |
160 | finish_comment_handling | 159 | finish_comment_handling |
161 | end | 160 | end |
@@ -164,7 +163,6 @@ class ContentViewerController < ApplicationController | @@ -164,7 +163,6 @@ class ContentViewerController < ApplicationController | ||
164 | @comment = @page.comments.find(params[:mark_comment_as_spam]) | 163 | @comment = @page.comments.find(params[:mark_comment_as_spam]) |
165 | if logged_in? && (user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) | 164 | if logged_in? && (user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) |
166 | @comment.spam! | 165 | @comment.spam! |
167 | - session[:notice] = _('Comment succesfully marked as SPAM') | ||
168 | end | 166 | end |
169 | finish_comment_handling | 167 | finish_comment_handling |
170 | end | 168 | end |