diff --git a/app/controllers/admin/comments_controller.rb b/app/controllers/admin/comments_controller.rb index 3a9c360f5..a0272f367 100644 --- a/app/controllers/admin/comments_controller.rb +++ b/app/controllers/admin/comments_controller.rb @@ -14,6 +14,7 @@ class Admin::CommentsController < Admin::BaseController def restore @comment.restore + @comment.ignore_flag Activity.log(current_user, :restore, @comment) redirect_to request.query_parameters.merge(action: :index) end diff --git a/spec/features/admin/comments_spec.rb b/spec/features/admin/comments_spec.rb index ffb8122d2..d6369272a 100644 --- a/spec/features/admin/comments_spec.rb +++ b/spec/features/admin/comments_spec.rb @@ -35,6 +35,7 @@ feature 'Admin comments' do expect(page).to_not have_content(comment.body) expect(comment.reload).to_not be_hidden + expect(comment).to be_ignored_flag end scenario "Confirm hide" do