1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Use ENV.fetch in views, fixes rubocop haml-lint issue (#27527)

This commit is contained in:
Matt Jankowski 2023-10-24 05:30:14 -04:00 committed by GitHub
parent 4fdc548fa5
commit e923bb9ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
- if self_destruct?
.flash-message.warning
= t('auth.status.self_destruct', domain: ENV['LOCAL_DOMAIN'])
= t('auth.status.self_destruct', domain: ENV.fetch('LOCAL_DOMAIN'))
- else
= render partial: 'status', locals: { user: @user, strikes: @strikes }

View file

@ -3,7 +3,7 @@
.simple_form
%h1.title= t('self_destruct.title')
%p.lead= t('self_destruct.lead_html', domain: ENV['LOCAL_DOMAIN'])
%p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN'))
.form-footer
%ul.no-list