diff --git a/app/javascript/flavours/glitch/features/compose/components/publisher.jsx b/app/javascript/flavours/glitch/features/compose/components/publisher.jsx
index 3128303c62..a935e82e8e 100644
--- a/app/javascript/flavours/glitch/features/compose/components/publisher.jsx
+++ b/app/javascript/flavours/glitch/features/compose/components/publisher.jsx
@@ -24,6 +24,10 @@ const messages = defineMessages({
id: 'compose_form.publish_loud',
},
saveChanges: { id: 'compose_form.save_changes', defaultMessage: 'Save changes' },
+ public: { id: 'privacy.public.short', defaultMessage: 'Public' },
+ unlisted: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
+ private: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
+ direct: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
});
class Publisher extends ImmutablePureComponent {
@@ -68,6 +72,13 @@ class Publisher extends ImmutablePureComponent {
publishText = privacy !== 'unlisted' ? intl.formatMessage(messages.publishLoud, { publish: intl.formatMessage(messages.publish) }) : intl.formatMessage(messages.publish);
}
+ const privacyNames = {
+ public: messages.public,
+ unlisted: messages.unlisted,
+ private: messages.private,
+ direct: messages.direct,
+ };
+
return (
{sideArm && !isEditing && sideArm !== 'none' ? (
@@ -78,7 +89,7 @@ class Publisher extends ImmutablePureComponent {
onClick={onSecondarySubmit}
style={{ padding: null }}
text={}
- title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage({ id: `privacy.${sideArm}.short` })}`}
+ title={`${intl.formatMessage(messages.publish)}: ${intl.formatMessage(privacyNames[sideArm])}`}
/>
) : null}
@@ -86,7 +97,7 @@ class Publisher extends ImmutablePureComponent {
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/index.jsx b/app/javascript/flavours/glitch/features/local_settings/page/index.jsx
index 83b0c79605..91582a3183 100644
--- a/app/javascript/flavours/glitch/features/local_settings/page/index.jsx
+++ b/app/javascript/flavours/glitch/features/local_settings/page/index.jsx
@@ -29,6 +29,10 @@ const messages = defineMessages({
rewrite_mentions_username: { id: 'settings.rewrite_mentions_username', defaultMessage: 'Rewrite with username' },
pop_in_left: { id: 'settings.pop_in_left', defaultMessage: 'Left' },
pop_in_right: { id: 'settings.pop_in_right', defaultMessage: 'Right' },
+ public: { id: 'privacy.public.short', defaultMessage: 'Public' },
+ unlisted: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
+ private: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
+ direct: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
});
class LocalSettingsPage extends React.PureComponent {
@@ -241,10 +245,10 @@ class LocalSettingsPage extends React.PureComponent {
id='mastodon-settings--side_arm'
options={[
{ value: 'none', message: intl.formatMessage(messages.side_arm_none) },
- { value: 'direct', message: intl.formatMessage({ id: 'privacy.direct.short' }) },
- { value: 'private', message: intl.formatMessage({ id: 'privacy.private.short' }) },
- { value: 'unlisted', message: intl.formatMessage({ id: 'privacy.unlisted.short' }) },
- { value: 'public', message: intl.formatMessage({ id: 'privacy.public.short' }) },
+ { value: 'direct', message: intl.formatMessage(messages.direct) },
+ { value: 'private', message: intl.formatMessage(messages.private) },
+ { value: 'unlisted', message: intl.formatMessage(messages.unlisted) },
+ { value: 'public', message: intl.formatMessage(messages.public) },
]}
onChange={onChange}
>
diff --git a/app/javascript/flavours/glitch/features/ui/components/column_link.jsx b/app/javascript/flavours/glitch/features/ui/components/column_link.jsx
index 4fffa54f4c..10b46f93d1 100644
--- a/app/javascript/flavours/glitch/features/ui/components/column_link.jsx
+++ b/app/javascript/flavours/glitch/features/ui/components/column_link.jsx
@@ -32,6 +32,7 @@ const ColumnLink = ({ icon, text, to, onClick, href, method, badge, transparent,
return onClick(e);
};
return (
+ // eslint-disable-next-line jsx-a11y/anchor-is-valid -- intentional to have the same look and feel as other menu items
{iconElement}
{text}