add community visibility to the web app
parent
881ccb2de1
commit
24c40ef9b9
|
@ -6,6 +6,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
public: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
public: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
||||||
|
local: { id: 'privacy.local.short', defaultMessage: 'Community' },
|
||||||
unlisted: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
|
unlisted: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
|
||||||
private: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
|
private: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
|
||||||
direct: { id: 'privacy.direct.short', defaultMessage: 'Direct' },
|
direct: { id: 'privacy.direct.short', defaultMessage: 'Direct' },
|
||||||
|
@ -25,6 +26,7 @@ export default class VisibilityIcon extends ImmutablePureComponent {
|
||||||
|
|
||||||
const visibilityClass = {
|
const visibilityClass = {
|
||||||
public: 'globe',
|
public: 'globe',
|
||||||
|
local: 'users',
|
||||||
unlisted: 'unlock',
|
unlisted: 'unlock',
|
||||||
private: 'lock',
|
private: 'lock',
|
||||||
direct: 'envelope',
|
direct: 'envelope',
|
||||||
|
|
|
@ -33,6 +33,14 @@ const messages = defineMessages({
|
||||||
defaultMessage: 'BBdown',
|
defaultMessage: 'BBdown',
|
||||||
id: 'compose.content-type.bbdown',
|
id: 'compose.content-type.bbdown',
|
||||||
},
|
},
|
||||||
|
local_short: {
|
||||||
|
defaultMessage: 'Community',
|
||||||
|
id: 'privacy.local.short'
|
||||||
|
},
|
||||||
|
local_long: {
|
||||||
|
defaultMessage: 'Post to community timeline',
|
||||||
|
id: 'privacy.local.long'
|
||||||
|
},
|
||||||
change_privacy: {
|
change_privacy: {
|
||||||
defaultMessage: 'Adjust status privacy',
|
defaultMessage: 'Adjust status privacy',
|
||||||
id: 'privacy.change',
|
id: 'privacy.change',
|
||||||
|
@ -236,6 +244,12 @@ class ComposerOptions extends ImmutablePureComponent {
|
||||||
name: 'unlisted',
|
name: 'unlisted',
|
||||||
text: <FormattedMessage {...messages.unlisted_short} />,
|
text: <FormattedMessage {...messages.unlisted_short} />,
|
||||||
},
|
},
|
||||||
|
local: {
|
||||||
|
icon: 'users',
|
||||||
|
meta: <FormattedMessage {...messages.local_long} />,
|
||||||
|
name: 'local',
|
||||||
|
text: <FormattedMessage {...messages.local_short} />,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const contentTypeItems = {
|
const contentTypeItems = {
|
||||||
|
@ -320,6 +334,7 @@ class ComposerOptions extends ImmutablePureComponent {
|
||||||
icon={(privacyItems[privacy] || {}).icon}
|
icon={(privacyItems[privacy] || {}).icon}
|
||||||
items={[
|
items={[
|
||||||
privacyItems.public,
|
privacyItems.public,
|
||||||
|
privacyItems.local,
|
||||||
privacyItems.unlisted,
|
privacyItems.unlisted,
|
||||||
privacyItems.private,
|
privacyItems.private,
|
||||||
privacyItems.direct,
|
privacyItems.direct,
|
||||||
|
|
|
@ -292,6 +292,8 @@
|
||||||
"privacy.change": "Adjust roar privacy",
|
"privacy.change": "Adjust roar privacy",
|
||||||
"privacy.direct.long": "Roar to mentioned creatures only",
|
"privacy.direct.long": "Roar to mentioned creatures only",
|
||||||
"privacy.direct.short": "Whisper",
|
"privacy.direct.short": "Whisper",
|
||||||
|
"privacy.local.short": "Monsterpit",
|
||||||
|
"privacy.local.long": "Roar to Monsterpit timeline",
|
||||||
"privacy.private.long": "Roar to packmates only",
|
"privacy.private.long": "Roar to packmates only",
|
||||||
"privacy.private.short": "Packmates-only",
|
"privacy.private.short": "Packmates-only",
|
||||||
"privacy.public.long": "Roar to public timelines",
|
"privacy.public.long": "Roar to public timelines",
|
||||||
|
|
Loading…
Reference in New Issue