about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-18 13:24:31 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-18 13:24:31 -0500
commit24c40ef9b9549d65f7955db016a95f2c9f10ddf1 (patch)
tree9c94ce8edfc902230ef4c8bc7ba5eb4b1f16c89e /app
parent881ccb2de130074f0ca64621c53a94ae87c2ffbe (diff)
add community visibility to the web app
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/components/status_visibility_icon.js2
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/options.js15
-rw-r--r--app/javascript/mastodon/locales/en.json2
3 files changed, 19 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status_visibility_icon.js b/app/javascript/flavours/glitch/components/status_visibility_icon.js
index 5e7b8ed00..6e6ca8048 100644
--- a/app/javascript/flavours/glitch/components/status_visibility_icon.js
+++ b/app/javascript/flavours/glitch/components/status_visibility_icon.js
@@ -6,6 +6,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
 
 const messages = defineMessages({
   public: { id: 'privacy.public.short', defaultMessage: 'Public' },
+  local: { id: 'privacy.local.short', defaultMessage: 'Community' },
   unlisted: { id: 'privacy.unlisted.short', defaultMessage: 'Unlisted' },
   private: { id: 'privacy.private.short', defaultMessage: 'Followers-only' },
   direct: { id: 'privacy.direct.short', defaultMessage: 'Direct' },
@@ -25,6 +26,7 @@ export default class VisibilityIcon extends ImmutablePureComponent {
 
     const visibilityClass = {
       public: 'globe',
+      local: 'users',
       unlisted: 'unlock',
       private: 'lock',
       direct: 'envelope',
diff --git a/app/javascript/flavours/glitch/features/compose/components/options.js b/app/javascript/flavours/glitch/features/compose/components/options.js
index 46b32b4a3..4203eb567 100644
--- a/app/javascript/flavours/glitch/features/compose/components/options.js
+++ b/app/javascript/flavours/glitch/features/compose/components/options.js
@@ -33,6 +33,14 @@ const messages = defineMessages({
     defaultMessage: '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: {
     defaultMessage: 'Adjust status privacy',
     id: 'privacy.change',
@@ -236,6 +244,12 @@ class ComposerOptions extends ImmutablePureComponent {
         name: 'unlisted',
         text: <FormattedMessage {...messages.unlisted_short} />,
       },
+      local: {
+        icon: 'users',
+        meta: <FormattedMessage {...messages.local_long} />,
+        name: 'local',
+        text: <FormattedMessage {...messages.local_short} />,
+      }
     };
 
     const contentTypeItems = {
@@ -320,6 +334,7 @@ class ComposerOptions extends ImmutablePureComponent {
           icon={(privacyItems[privacy] || {}).icon}
           items={[
             privacyItems.public,
+            privacyItems.local,
             privacyItems.unlisted,
             privacyItems.private,
             privacyItems.direct,
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index d82863a1f..53166a19b 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -292,6 +292,8 @@
   "privacy.change": "Adjust roar privacy",
   "privacy.direct.long": "Roar to mentioned creatures only",
   "privacy.direct.short": "Whisper",
+  "privacy.local.short": "Monsterpit",
+  "privacy.local.long": "Roar to Monsterpit timeline",
   "privacy.private.long": "Roar to packmates only",
   "privacy.private.short": "Packmates-only",
   "privacy.public.long": "Roar to public timelines",