From 1bbe12254d450aadf343ea337287f5e4b6ce5e80 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 19 May 2018 18:37:33 +0200 Subject: [PATCH] Improve direct message warning again (#7546) --- .../features/compose/containers/warning_container.js | 10 +++++++++- app/javascript/mastodon/locales/en.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/compose/containers/warning_container.js b/app/javascript/mastodon/features/compose/containers/warning_container.js index 88f816da4..8200a319f 100644 --- a/app/javascript/mastodon/features/compose/containers/warning_container.js +++ b/app/javascript/mastodon/features/compose/containers/warning_container.js @@ -17,11 +17,19 @@ const WarningWrapper = ({ needsLockWarning, hashtagWarning, directMessageWarning if (needsLockWarning) { return }} />} />; } + if (hashtagWarning) { return } />; } + if (directMessageWarning) { - return } />; + const message = ( + + + + ); + + return ; } return null; diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 11589d797..85bfd11dd 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -60,7 +60,7 @@ "column_header.unpin": "Unpin", "column_subheading.navigation": "Navigation", "column_subheading.settings": "Settings", - "compose_form.direct_message_warning": "This toot will only be sent to the mentioned users. However, the operators of yours and any of the receiving instances may inspect this message.", + "compose_form.direct_message_warning": "This toot will only be sent to the mentioned users.", "compose_form.hashtag_warning": "This toot won't be listed under any hashtag as it is unlisted. Only public toots can be searched by hashtag.", "compose_form.lock_disclaimer": "Your account is not {locked}. Anyone can follow you to view your follower-only posts.", "compose_form.lock_disclaimer.lock": "locked",