From 5462a1e56abf70486dc59593dde6ecb95a072026 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 20 Mar 2024 11:00:31 -0400 Subject: Added some admin dashboard stats --- app/controllers/comments_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/comments_controller.rb') diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 368f587..b305d0a 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -35,6 +35,8 @@ class CommentsController < ApplicationController if is_blatant # I am lying. flash.notice = "Comment submitted successfully! It will need to be moderated before it shows up on the blog." + + Global.increment_filtered_comments else if is_spam @comment.status = :pending -- cgit 1.4.1