From 26a7339889929025495df59776d1a33ca19c77ae Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 13 Oct 2023 13:18:18 -0400 Subject: Pending comments also send you an email now --- app/controllers/comments_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index c66365b..a444dba 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -46,6 +46,8 @@ class CommentsController < ApplicationController if @comment.status == :published CommentMailer.with(comment: @comment).new_comment_email.deliver_later + else + CommentMailer.with(comment: @comment).new_pending_comment_email.deliver_later end else flash.alert = "Error posting comment." -- cgit 1.4.1