no unsubscribe footer for internal emails

This commit is contained in:
Kyle Drake 2015-04-01 11:35:47 -07:00
parent b7e091b440
commit 245ce0c6b0
4 changed files with 8 additions and 4 deletions

3
app.rb
View file

@ -44,7 +44,8 @@ error do
from: 'web@neocities.org', from: 'web@neocities.org',
to: 'errors@neocities.org', to: 'errors@neocities.org',
subject: "[Neocities Error] #{env['sinatra.error'].class}: #{env['sinatra.error'].message}", 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 if @api

View file

@ -21,7 +21,8 @@ post '/contact' do
reply_to: params[:email], reply_to: params[:email],
to: 'contact@neocities.org', to: 'contact@neocities.org',
subject: "[Neocities Contact]: #{params[:subject]}", subject: "[Neocities Contact]: #{params[:subject]}",
body: params[:body] body: params[:body],
no_footer: true
}) })
flash[:success] = 'Your contact has been sent.' flash[:success] = 'Your contact has been sent.'

View file

@ -26,7 +26,8 @@ post '/dmca/contact' do
reply_to: params[:email], reply_to: params[:email],
to: 'dmca@neocities.org', to: 'dmca@neocities.org',
subject: "[Neocities DMCA Notice]: #{params[:subject]}", 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.' flash[:success] = 'Your DCMA notification has been sent.'

View file

@ -8,7 +8,8 @@ post '/stripe_webhook' do
from: 'web@neocities.org', from: 'web@neocities.org',
to: 'contact@neocities.org', to: 'contact@neocities.org',
subject: "[Neocities] New customer: #{username}", 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 end