mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:59:17 +02:00
Expose public libraries and channels in standard API
This commit is contained in:
parent
91dbfde3ea
commit
eb66d4e3d2
8 changed files with 311 additions and 55 deletions
|
@ -53,3 +53,13 @@ class ActorFetchDelay(preferences.DefaultFromSettingMixin, types.IntPreference):
|
|||
"request authentication."
|
||||
)
|
||||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class PublicIndex(types.BooleanPreference):
|
||||
show_in_api = True
|
||||
section = federation
|
||||
name = "public_index"
|
||||
default = True
|
||||
verbose_name = "Enable public index"
|
||||
help_text = "If this is enabled, public channels and libraries will be crawlable by other pods and bots"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue