diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-14 02:41:44 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | abfd0c107c8003ba06a118625c49d22df553696f (patch) | |
tree | bb41e6b47b2848233b7830b179a7b2e4df21dd91 /app/javascript | |
parent | d97a574b07cb60e9c2bdd98ace5049e73ee9b861 (diff) |
[Command Tags] Add #!notify toggle to allow toggling whether or not a post should be locally delivered to timelines/notifications
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index f03072ac8..0b3f3048b 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -313,9 +313,21 @@ export default class StatusContent extends React.PureComponent { </div> ); + const quiet = (status.get('notify') === false) && ( + <div className='status__notice status__quiet-notice'> + <Icon id='bell-slash' /> + <FormattedMessage + id='status.quiet' + defaultMessage='Quiet local publish' + key={`quiet-${status.get('id')}`} + /> + </div> + ); + const status_notice_wrapper = ( <div className='status__notice-wrapper'> {unpublished} + {quiet} {edited} {local_only} </div> |