about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 11:00:31 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 11:00:31 -0400
commit5462a1e56abf70486dc59593dde6ecb95a072026 (patch)
tree3e956e0ca3bfbf773af3a9dd303cb4743615fe67 /app/controllers
parent2e1365d37bddf787c7089126c1a5ff1c623ab0e2 (diff)
downloadthoughts-5462a1e56abf70486dc59593dde6ecb95a072026.tar.gz
thoughts-5462a1e56abf70486dc59593dde6ecb95a072026.tar.bz2
thoughts-5462a1e56abf70486dc59593dde6ecb95a072026.zip
Added some admin dashboard stats
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/comments_controller.rb2
1 files changed, 2 insertions, 0 deletions
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
35 if is_blatant 35 if is_blatant
36 # I am lying. 36 # I am lying.
37 flash.notice = "Comment submitted successfully! It will need to be moderated before it shows up on the blog." 37 flash.notice = "Comment submitted successfully! It will need to be moderated before it shows up on the blog."
38
39 Global.increment_filtered_comments
38 else 40 else
39 if is_spam 41 if is_spam
40 @comment.status = :pending 42 @comment.status = :pending