]> cat aescling's git repositories - mastodon.git/commitdiff
Add status icon for local-only toots
authorThibaut Girka <thib@sitedethib.com>
Tue, 16 Jul 2019 13:08:03 +0000 (15:08 +0200)
committerThibG <thib@sitedethib.com>
Wed, 17 Jul 2019 19:35:34 +0000 (21:35 +0200)
app/javascript/flavours/glitch/components/status_icons.js

index 207397d9f0bb026c305a4ff14c2a5332b9a59772..38e4a863f6f22a1cf2ea3efdda7ea9e3374cc4f8 100644 (file)
@@ -18,6 +18,7 @@ const messages = defineMessages({
   poll: { id: 'status.is_poll', defaultMessage: 'This toot is a poll' },
   video: { id: 'status.has_video', defaultMessage: 'This toot features attached videos' },
   audio: { id: 'status.has_audio', defaultMessage: 'This toot features attached audio files' },
+  localOnly: { id: 'status.local_only', defaultMessage: 'This toot is only visible from youre instance' },
 });
 
 @injectIntl
@@ -79,6 +80,12 @@ export default class StatusIcons extends React.PureComponent {
             title={intl.formatMessage(messages.inReplyTo)}
           />
         ) : null}
+        {status.get('local_only') &&
+          <i
+            className={`fa fa-fw fa-home`}
+            aria-hidden='true'
+            title={intl.formatMessage(messages.localOnly)}
+          />}
         {mediaIcon ? (
           <i
             className={`fa fa-fw fa-${mediaIcon} status__media-icon`}