pl-fe: Follow Mastodon for privacy scope names
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -328,7 +328,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
||||
if (isEditing) {
|
||||
publishText = intl.formatMessage(messages.saveChanges);
|
||||
} else if (privacy === 'direct') {
|
||||
publishIcon = require('@phosphor-icons/core/regular/envelope-simple.svg');
|
||||
publishIcon = require('@phosphor-icons/core/regular/at.svg');
|
||||
publishText = intl.formatMessage(messages.message);
|
||||
} else if (privacy === 'private' || privacy === 'mutuals_only') {
|
||||
publishIcon = require('@phosphor-icons/core/regular/lock.svg');
|
||||
|
||||
@@ -16,16 +16,16 @@ import type { Circle, Features } from 'pl-api';
|
||||
const messages = defineMessages({
|
||||
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
||||
public_long: { id: 'privacy.public.long', defaultMessage: 'Post to public timelines' },
|
||||
unlisted_short: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
|
||||
unlisted_long: { id: 'privacy.unlisted.long', defaultMessage: 'Do not post to public timelines' },
|
||||
unlisted_short: { id: 'privacy.unlisted.short', defaultMessage: 'Quiet public' },
|
||||
unlisted_long: { id: 'privacy.unlisted.long', defaultMessage: 'Not visible in public timelines' },
|
||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
|
||||
private_long: { id: 'privacy.private.long', defaultMessage: 'Post to followers only' },
|
||||
conversation_short: { id: 'privacy.conversation.short', defaultMessage: 'Conversation' },
|
||||
conversation_long: { id: 'privacy.conversation.long', defaultMessage: 'Post to recipients of the parent post' },
|
||||
mutuals_only_short: { id: 'privacy.mutuals_only.short', defaultMessage: 'Mutuals-only' },
|
||||
mutuals_only_long: { id: 'privacy.mutuals_only.long', defaultMessage: 'Post to mutually followed users only' },
|
||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Direct' },
|
||||
direct_long: { id: 'privacy.direct.long', defaultMessage: 'Post to mentioned users only' },
|
||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Private mention' },
|
||||
direct_long: { id: 'privacy.direct.long', defaultMessage: 'Visible to mentioned users only' },
|
||||
local_short: { id: 'privacy.local.short', defaultMessage: 'Local-only' },
|
||||
local_long: { id: 'privacy.local.long', defaultMessage: 'Only visible on your instance' },
|
||||
list_short: { id: 'privacy.list.short', defaultMessage: 'List only' },
|
||||
@@ -55,7 +55,7 @@ const getItems = (features: Features, lists: ReturnType<typeof getOrderedLists>,
|
||||
meta: intl.formatMessage(messages.public_long),
|
||||
},
|
||||
{
|
||||
icon: require('@phosphor-icons/core/regular/lock-open.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/moon.svg'),
|
||||
value: 'unlisted',
|
||||
text: intl.formatMessage(messages.unlisted_short),
|
||||
meta: intl.formatMessage(messages.unlisted_long),
|
||||
@@ -85,7 +85,7 @@ const getItems = (features: Features, lists: ReturnType<typeof getOrderedLists>,
|
||||
meta: intl.formatMessage(messages.subscribers_long),
|
||||
} : undefined,
|
||||
{
|
||||
icon: require('@phosphor-icons/core/regular/envelope-simple.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/at.svg'),
|
||||
value: 'direct',
|
||||
text: intl.formatMessage(messages.direct_short),
|
||||
meta: intl.formatMessage(messages.direct_long),
|
||||
|
||||
@@ -47,7 +47,7 @@ const messages = defineMessages({
|
||||
reblog_private: { id: 'status.reblog_private', defaultMessage: 'Repost to original audience' },
|
||||
cancel_reblog_private: { id: 'status.cancel_reblog_private', defaultMessage: 'Un-repost' },
|
||||
reblog_visibility_public: { id: 'status.reblog_visibility_public', defaultMessage: 'Public repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Unlisted repost' },
|
||||
reblog_visibility_unlisted: { id: 'status.reblog_visibility_unlisted', defaultMessage: 'Quiet public repost' },
|
||||
reblog_visibility_private: { id: 'status.reblog_visibility_private', defaultMessage: 'Followers-only repost' },
|
||||
unreblog: { id: 'event.unreblog', defaultMessage: 'Un-repost event' },
|
||||
pin: { id: 'status.pin', defaultMessage: 'Pin on profile' },
|
||||
@@ -264,7 +264,7 @@ const EventHeader: React.FC<IEventHeader> = ({ status }) => {
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_unlisted),
|
||||
action: () => handleReblogClick('unlisted'),
|
||||
icon: require('@phosphor-icons/core/regular/lock-open.svg'),
|
||||
icon: require('@phosphor-icons/core/regular/moon.svg'),
|
||||
},
|
||||
{
|
||||
text: intl.formatMessage(messages.reblog_visibility_private),
|
||||
|
||||
@@ -21,7 +21,7 @@ const messages: Record<string, MessageDescriptor> = defineMessages({
|
||||
});
|
||||
|
||||
const STATUS_TYPE_ICONS: Record<string, string> = {
|
||||
direct: require('@phosphor-icons/core/regular/envelope-simple.svg'),
|
||||
direct: require('@phosphor-icons/core/regular/at.svg'),
|
||||
private: require('@phosphor-icons/core/regular/lock.svg'),
|
||||
mutuals_only: require('@phosphor-icons/core/regular/users-three.svg'),
|
||||
local: require('@phosphor-icons/core/regular/planet.svg'),
|
||||
|
||||
Reference in New Issue
Block a user