From 8aad796b15f001e0de5d51d50975ef0b231343a3 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 11 Sep 2012 15:38:05 -0300 Subject: [PATCH] No need for notice after removing/marking as spam --- app/controllers/public/content_viewer_controller.rb | 2 -- 1 file changed, 0 insertions(+), 2 deletions(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 9a695d4..86cc793 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -155,7 +155,6 @@ class ContentViewerController < ApplicationController @comment = @page.comments.find(params[:remove_comment]) if (user == @comment.author || user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) @comment.destroy - session[:notice] = _('Comment succesfully deleted') end finish_comment_handling end @@ -164,7 +163,6 @@ class ContentViewerController < ApplicationController @comment = @page.comments.find(params[:mark_comment_as_spam]) if logged_in? && (user == @page.profile || user.has_permission?(:moderate_comments, @page.profile)) @comment.spam! - session[:notice] = _('Comment succesfully marked as SPAM') end finish_comment_handling end -- libgit2 0.21.2