From e243092a5ae44dbf9a1c0ea2791214f6c9d69025 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 21 Apr 2021 15:40:00 +0200 Subject: [PATCH] Add DM icon back on HTML view of DMs (#16086) Fix regression from #16052 --- app/helpers/application_helper.rb | 2 ++ config/locales/en.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fc2d2fea99..bf5742d34f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -91,6 +91,8 @@ module ApplicationHelper fa_icon('unlock', title: I18n.t('statuses.visibilities.unlisted')) elsif status.private_visibility? || status.limited_visibility? fa_icon('lock', title: I18n.t('statuses.visibilities.private')) + elsif status.direct_visibility? + fa_icon('envelope', title: I18n.t('statuses.visibilities.direct')) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 3f3adc158a..7aebd0743e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1260,6 +1260,7 @@ en: sign_in_to_participate: Sign in to participate in the conversation title: '%{name}: "%{quote}"' visibilities: + direct: Direct private: Followers-only private_long: Only show to followers public: Public