Adding a server setting for default federation (#1258)
There is now a toggle under Administration -> Server Settings -> Hometown that lets an admin make new accounts default to local-only privacy for posts. It does not affect current accounts. ![image](https://user-images.githubusercontent.com/266454/209882528-5edd4bd7-5002-4104-8058-f6e638f89453.png) Fixes #704
This commit is contained in:
parent
4bd06f4eff
commit
d2e626dd1d
|
@ -6,6 +6,7 @@ module Settings
|
||||||
theme
|
theme
|
||||||
noindex
|
noindex
|
||||||
norss
|
norss
|
||||||
|
default_federation
|
||||||
).freeze
|
).freeze
|
||||||
|
|
||||||
def initialize(object)
|
def initialize(object)
|
||||||
|
|
|
@ -28,6 +28,7 @@ class Form::AdminSettings
|
||||||
show_domain_blocks_rationale
|
show_domain_blocks_rationale
|
||||||
noindex
|
noindex
|
||||||
norss
|
norss
|
||||||
|
default_federation
|
||||||
require_invite_text
|
require_invite_text
|
||||||
media_cache_retention_period
|
media_cache_retention_period
|
||||||
content_cache_retention_period
|
content_cache_retention_period
|
||||||
|
@ -50,6 +51,7 @@ class Form::AdminSettings
|
||||||
trendable_by_default
|
trendable_by_default
|
||||||
noindex
|
noindex
|
||||||
norss
|
norss
|
||||||
|
default_federation
|
||||||
require_invite_text
|
require_invite_text
|
||||||
).freeze
|
).freeze
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,8 @@
|
||||||
.fields-group
|
.fields-group
|
||||||
= f.input :norss, as: :boolean, wrapper: :with_label
|
= f.input :norss, as: :boolean, wrapper: :with_label
|
||||||
|
|
||||||
|
.fields-group
|
||||||
|
= f.input :default_federation, as: :boolean, wrapper: :with_label
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
= f.button :button, t('generic.save_changes'), type: :submit
|
= f.button :button, t('generic.save_changes'), type: :submit
|
||||||
|
|
|
@ -80,6 +80,7 @@ en:
|
||||||
closed_registrations_message: Displayed when sign-ups are closed
|
closed_registrations_message: Displayed when sign-ups are closed
|
||||||
content_cache_retention_period: Posts from other servers will be deleted after the specified number of days when set to a positive value. This may be irreversible.
|
content_cache_retention_period: Posts from other servers will be deleted after the specified number of days when set to a positive value. This may be irreversible.
|
||||||
custom_css: You can apply custom styles on the web version of Mastodon.
|
custom_css: You can apply custom styles on the web version of Mastodon.
|
||||||
|
default_federation: Affects all users who have not changed this setting themselves. Unchecking this means new users will post local-only by default unless they change it in their preferences.
|
||||||
mascot: Overrides the illustration in the advanced web interface.
|
mascot: Overrides the illustration in the advanced web interface.
|
||||||
media_cache_retention_period: Downloaded media files will be deleted after the specified number of days when set to a positive value, and re-downloaded on demand.
|
media_cache_retention_period: Downloaded media files will be deleted after the specified number of days when set to a positive value, and re-downloaded on demand.
|
||||||
norss: Affects all users who have not changed this setting themselves.
|
norss: Affects all users who have not changed this setting themselves.
|
||||||
|
@ -240,6 +241,7 @@ en:
|
||||||
closed_registrations_message: Custom message when sign-ups are not available
|
closed_registrations_message: Custom message when sign-ups are not available
|
||||||
content_cache_retention_period: Content cache retention period
|
content_cache_retention_period: Content cache retention period
|
||||||
custom_css: Custom CSS
|
custom_css: Custom CSS
|
||||||
|
default_federation: Set the default posting privacy for new users to federated
|
||||||
mascot: Custom mascot (legacy)
|
mascot: Custom mascot (legacy)
|
||||||
media_cache_retention_period: Media cache retention period
|
media_cache_retention_period: Media cache retention period
|
||||||
norss: Opt users out of having an RSS feed of their public posts by default
|
norss: Opt users out of having an RSS feed of their public posts by default
|
||||||
|
|
Loading…
Reference in New Issue