mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 15:19:15 +02:00
Fix #200: Instances can now indicate on the nodeinfo endpoint if they want to remain private
This commit is contained in:
parent
ceccaa1387
commit
1974c17e76
4 changed files with 19 additions and 0 deletions
|
@ -85,6 +85,20 @@ class InstanceNodeinfoEnabled(types.BooleanPreference):
|
|||
)
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceNodeinfoPrivate(types.BooleanPreference):
|
||||
show_in_api = False
|
||||
section = instance
|
||||
name = 'nodeinfo_private'
|
||||
default = False
|
||||
verbose_name = 'Enable nodeinfo endpoint'
|
||||
help_text = (
|
||||
'Indicate in the nodeinfo endpoint that you do not want your instance'
|
||||
'to be tracked by third-party services.'
|
||||
'There is no guarantee these tools will honor this setting though.'
|
||||
)
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceNodeinfoStatsEnabled(types.BooleanPreference):
|
||||
show_in_api = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue