about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/quotes_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/quotes_controller.rb b/app/controllers/quotes_controller.rb index dd37cde..a0aa7cd 100644 --- a/app/controllers/quotes_controller.rb +++ b/app/controllers/quotes_controller.rb
@@ -180,7 +180,10 @@ class QuotesController < ApplicationController
180 @quote.state = :pending 180 @quote.state = :pending
181 @quote.save! 181 @quote.save!
182 182
183 QuoteMailer.with(quote: @quote).pending_quote_email.deliver_later 183 # hacky little thing to reduce the number of emails I get
184 unless @quote.submitter == "hatkirby"
185 QuoteMailer.with(quote: @quote).pending_quote_email.deliver_later
186 end
184 187
185 flash[:notice] = "Your quote has been submitted and is pending moderation." 188 flash[:notice] = "Your quote has been submitted and is pending moderation."
186 respond_to do |format| 189 respond_to do |format|