Verified Commit dc731532 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Expose default upload quota in nodeinfo

parent c2f0491c
......@@ -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(
......
......@@ -42,6 +42,7 @@ def test_nodeinfo_dump(preferences, mocker, avatar):
"nodeName": preferences["instance__name"],
"rules": preferences["instance__rules"],
"contactEmail": preferences["instance__contact_email"],
"defaultUploadQuota": preferences["users__upload_quota"],
"terms": preferences["instance__terms"],
"banner": federation_utils.full_url(preferences["instance__banner"].url),
"library": {
......@@ -113,6 +114,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
"nodeName": preferences["instance__name"],
"rules": preferences["instance__rules"],
"contactEmail": preferences["instance__contact_email"],
"defaultUploadQuota": preferences["users__upload_quota"],
"terms": preferences["instance__terms"],
"banner": None,
"library": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment