diff --git a/src/components/scope_selector/scope_selector.js b/src/components/scope_selector/scope_selector.js index 74bf7284..f04528e5 100644 --- a/src/components/scope_selector/scope_selector.js +++ b/src/components/scope_selector/scope_selector.js @@ -33,6 +33,9 @@ const ScopeSelector = { showPublic () { return this.originalScope !== 'direct' && this.shouldShow('public') }, + showLocal () { + return this.originalScope !== 'direct' && this.shouldShow('local') + }, showUnlisted () { return this.originalScope !== 'direct' && this.shouldShow('unlisted') }, @@ -47,7 +50,8 @@ const ScopeSelector = { public: { selected: this.currentScope === 'public' }, unlisted: { selected: this.currentScope === 'unlisted' }, private: { selected: this.currentScope === 'private' }, - direct: { selected: this.currentScope === 'direct' } + direct: { selected: this.currentScope === 'direct' }, + local: { selected: this.currentScope === 'local' } } } }, diff --git a/src/components/scope_selector/scope_selector.vue b/src/components/scope_selector/scope_selector.vue index a01242fc..0d7459d7 100644 --- a/src/components/scope_selector/scope_selector.vue +++ b/src/components/scope_selector/scope_selector.vue @@ -55,6 +55,19 @@ class="fa-scale-110 fa-old-padding" /> + diff --git a/src/components/status/status.js b/src/components/status/status.js index 470c01f1..54d23ed0 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -268,6 +268,8 @@ const Status = { return 'lock-open' case 'direct': return 'envelope' + case 'local': + return "users" default: return 'globe' } diff --git a/src/i18n/en.json b/src/i18n/en.json index f6f39dbe..fe13ebc3 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -212,13 +212,15 @@ "scope_notice": { "public": "This post will be visible to everyone", "private": "This post will be visible to your followers only", - "unlisted": "This post will not be visible in Public Timeline and The Whole Known Network" + "unlisted": "This post will not be visible in Public Timeline and The Whole Known Network", + "local": "This post won't be visible outside of IHBA" }, "scope": { "direct": "Direct - post to mentioned users only", "private": "Followers-only - post to followers only", "public": "Public - post to public timelines", - "unlisted": "Unlisted - do not post to public timelines" + "unlisted": "Unlisted - do not post to public timelines", + "local": "Local - do not federate this post" } }, "registration": {