Expose default upload quota in nodeinfo

This commit is contained in:
Eliot Berriot 2019-09-19 11:31:39 +02:00
parent c2f0491c20
commit dc731532b9
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 3 additions and 0 deletions

View file

@ -47,6 +47,7 @@ def get():
"terms": all_preferences.get("instance__terms"),
"nodeName": all_preferences.get("instance__name"),
"banner": federation_utils.full_url(banner.url) if banner else None,
"defaultUploadQuota": all_preferences.get("users__upload_quota"),
"library": {
"federationEnabled": all_preferences.get("federation__enabled"),
"federationNeedsApproval": all_preferences.get(