mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 14:16:12 +01:00
Add status icon for local-only toots
This commit is contained in:
parent
7db7cb31b1
commit
572009cf56
@ -18,6 +18,7 @@ const messages = defineMessages({
|
|||||||
poll: { id: 'status.is_poll', defaultMessage: 'This toot is a poll' },
|
poll: { id: 'status.is_poll', defaultMessage: 'This toot is a poll' },
|
||||||
video: { id: 'status.has_video', defaultMessage: 'This toot features attached videos' },
|
video: { id: 'status.has_video', defaultMessage: 'This toot features attached videos' },
|
||||||
audio: { id: 'status.has_audio', defaultMessage: 'This toot features attached audio files' },
|
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
|
@injectIntl
|
||||||
@ -79,6 +80,12 @@ export default class StatusIcons extends React.PureComponent {
|
|||||||
title={intl.formatMessage(messages.inReplyTo)}
|
title={intl.formatMessage(messages.inReplyTo)}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
{status.get('local_only') &&
|
||||||
|
<i
|
||||||
|
className={`fa fa-fw fa-home`}
|
||||||
|
aria-hidden='true'
|
||||||
|
title={intl.formatMessage(messages.localOnly)}
|
||||||
|
/>}
|
||||||
{mediaIcon ? (
|
{mediaIcon ? (
|
||||||
<i
|
<i
|
||||||
className={`fa fa-fw fa-${mediaIcon} status__media-icon`}
|
className={`fa fa-fw fa-${mediaIcon} status__media-icon`}
|
||||||
|
Loading…
Reference in New Issue
Block a user