]> cat aescling's git repositories - mastodon.git/commitdiff
Fix backend terms link not being used
authorClaire <claire.github-309c@sitedethib.com>
Tue, 3 May 2022 09:10:58 +0000 (11:10 +0200)
committersingle-right-quote <11325618-aescling@users.noreply.gitlab.com>
Thu, 5 May 2022 17:49:38 +0000 (13:49 -0400)
app/javascript/flavours/glitch/features/compose/containers/warning_container.js

index e2c1f5713d6b5ffddf574e7d94d5d0a00014d3ab..5fccaa44254f283070818069943ed2c361c86c4d 100644 (file)
@@ -49,7 +49,7 @@ const WarningWrapper = ({ needsLockWarning, hashtagWarning, directMessageWarning
   if (directMessageWarning) {
     const message = (
       <span>
-        <FormattedMessage id='compose_form.encryption_warning' defaultMessage='Posts on Mastodon are not end-to-end encrypted. Do not share any dangerous information over Mastodon.' /> <a href='/terms' target='_blank'><FormattedMessage id='compose_form.direct_message_warning_learn_more' defaultMessage='Learn more' /></a>
+        <FormattedMessage id='compose_form.encryption_warning' defaultMessage='Posts on Mastodon are not end-to-end encrypted. Do not share any dangerous information over Mastodon.' /> {!!termsLink && <a href={termsLink} target='_blank'><FormattedMessage id='compose_form.direct_message_warning_learn_more' defaultMessage='Learn more' /></a>}
       </span>
     );