Add support for configurable administrator email

This commit is contained in:
Omar Roth 2019-10-27 14:18:07 -04:00
parent 35f011758d
commit 03e24cccd0
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
2 changed files with 4 additions and 6 deletions

View file

@ -5848,12 +5848,9 @@ end
error 500 do |env|
error_message = <<-END_HTML
Looks like you've found a bug in Invidious. Feel free to open a new issue
<a href="https://github.com/omarroth/invidious/issues">
here
</a>
<a href="https://github.com/omarroth/invidious/issues">here</a>
or send an email to
<a href="mailto:omarroth@protonmail.com">
omarroth@protonmail.com</a>.
<a href="mailto:#{CONFIG.admin_email}">#{CONFIG.admin_email}</a>.
END_HTML
templated "error"
end