From 245ce0c6b07e310f1d9f71039765273616b026ca Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 1 Apr 2015 11:35:47 -0700 Subject: [PATCH] no unsubscribe footer for internal emails --- app.rb | 3 ++- app/contact.rb | 3 ++- app/dmca.rb | 3 ++- app/stripe_webhook.rb | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app.rb b/app.rb index 3ee9aaac..bedf3554 100644 --- a/app.rb +++ b/app.rb @@ -44,7 +44,8 @@ error do from: 'web@neocities.org', to: 'errors@neocities.org', subject: "[Neocities Error] #{env['sinatra.error'].class}: #{env['sinatra.error'].message}", - body: erb(:'views/templates/email/error') + body: erb(:'views/templates/email/error'), + no_footer: true }) if @api diff --git a/app/contact.rb b/app/contact.rb index 0b0726b5..74bb591e 100644 --- a/app/contact.rb +++ b/app/contact.rb @@ -21,7 +21,8 @@ post '/contact' do reply_to: params[:email], to: 'contact@neocities.org', subject: "[Neocities Contact]: #{params[:subject]}", - body: params[:body] + body: params[:body], + no_footer: true }) flash[:success] = 'Your contact has been sent.' diff --git a/app/dmca.rb b/app/dmca.rb index 384a57a8..ae838708 100644 --- a/app/dmca.rb +++ b/app/dmca.rb @@ -26,7 +26,8 @@ post '/dmca/contact' do reply_to: params[:email], to: 'dmca@neocities.org', subject: "[Neocities DMCA Notice]: #{params[:subject]}", - body: "#{params[:urls].to_s}\n#{params[:body].to_s}" + body: "#{params[:urls].to_s}\n#{params[:body].to_s}", + no_footer: true }) flash[:success] = 'Your DCMA notification has been sent.' diff --git a/app/stripe_webhook.rb b/app/stripe_webhook.rb index 4b335a1e..f46b7934 100644 --- a/app/stripe_webhook.rb +++ b/app/stripe_webhook.rb @@ -8,7 +8,8 @@ post '/stripe_webhook' do from: 'web@neocities.org', to: 'contact@neocities.org', subject: "[Neocities] New customer: #{username}", - body: "#{username}\n#{email}\n#{Site[username: username].uri}" + body: "#{username}\n#{email}\n#{Site[username: username].uri}", + no_footer: true }) end