about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-28 19:33:31 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-28 19:33:31 -0500
commitb93bf4b27192996a704de9a7cd14c22655a54462 (patch)
treebf6f16d23f28653a757c67ecfee6fd25c04c2df3 /app/javascript/flavours/glitch/features/compose
parent30d3b9a6f7df8bd4e9811f2a4a23bae93362870d (diff)
use identity nickname in composer placeholder instead (custom emoji won't work in placeholder text)
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/compose_form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
index 56bf616cc..5a1949e90 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
@@ -20,8 +20,8 @@ const messages = defineMessages({
   placeholder: { id: 'compose_form.placeholder', defaultMessage: 'Roar shamelessly!' },
   placeholder_as: {
     id: 'compose_form.placeholder_as',
-    defaultMessage: "Signing as {signature}.\nRoar shamelessly!",
-    values: {signature: 'yourself'}
+    defaultMessage: "Signing as {nickname}.\nRoar shamelessly!",
+    values: {nickname: 'yourself'}
   },
   missingDescriptionMessage: {  id: 'confirmations.missing_media_description.message',
                                 defaultMessage: 'At least one media attachment is lacking a description. Consider describing all media attachments for the visually impaired before sending your toot.' },
@@ -307,7 +307,7 @@ class ComposeForm extends ImmutablePureComponent {
     } = this.props;
 
     let disabledButton = isSubmitting || isUploading || isChangingUpload || (!text.trim().length && !anyMedia);
-    let signature = this.props.account.get('signature');
+    let nickname = this.props.account.get('identity');
 
     return (
       <div className='composer'>
@@ -339,7 +339,7 @@ class ComposeForm extends ImmutablePureComponent {
 
           <AutosuggestTextarea
             ref={this.setAutosuggestTextarea}
-            placeholder={signature ? intl.formatMessage(messages.placeholder_as, {signature: signature}) : intl.formatMessage(messages.placeholder)}
+            placeholder={nickname ? intl.formatMessage(messages.placeholder_as, {nickname: nickname}) : intl.formatMessage(messages.placeholder)}
             disabled={isSubmitting}
             value={this.props.text}
             onChange={this.handleChange}