about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-07-16 15:08:03 +0200
committerThibG <thib@sitedethib.com>2019-07-17 21:35:34 +0200
commit572009cf5616b2dfab11b14395f4ddc17925c6a5 (patch)
tree95024d01edea2e2ad9181caf1bad334c222b3a4b /app/javascript/flavours
parent7db7cb31b1c533db86ae6533433857fd4e98ba07 (diff)
Add status icon for local-only toots
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/components/status_icons.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status_icons.js b/app/javascript/flavours/glitch/components/status_icons.js
index 207397d9f..38e4a863f 100644
--- a/app/javascript/flavours/glitch/components/status_icons.js
+++ b/app/javascript/flavours/glitch/components/status_icons.js
@@ -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`}