mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
no unsubscribe footer for internal emails
This commit is contained in:
parent
b7e091b440
commit
245ce0c6b0
4 changed files with 8 additions and 4 deletions
3
app.rb
3
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
|
||||
|
|
|
@ -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.'
|
||||
|
|
|
@ -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.'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue