mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:59:17 +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
|
@ -12,6 +12,7 @@ memo = memoize.Memoizer(store, namespace='instance:stats')
|
|||
|
||||
def get():
|
||||
share_stats = preferences.get('instance__nodeinfo_stats_enabled')
|
||||
private = preferences.get('instance__nodeinfo_private')
|
||||
data = {
|
||||
'version': '2.0',
|
||||
'software': {
|
||||
|
@ -30,6 +31,7 @@ def get():
|
|||
}
|
||||
},
|
||||
'metadata': {
|
||||
'private': preferences.get('instance__nodeinfo_private'),
|
||||
'shortDescription': preferences.get('instance__short_description'),
|
||||
'longDescription': preferences.get('instance__long_description'),
|
||||
'nodeName': preferences.get('instance__name'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue