feat(api): Add atom1.0 to node info services

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2604>
This commit is contained in:
Georg Krause 2023-11-16 08:52:52 +00:00
parent e3a28aaeb3
commit a05b44f27b
3 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,7 @@ class NodeInfo(views.APIView):
data = { data = {
"software": {"version": funkwhale_version}, "software": {"version": funkwhale_version},
"services": {"inbound": ["atom1.0"], "outbound": ["atom1.0"]},
"preferences": pref, "preferences": pref,
"stats": cache_memoize(600, prefix="memoize:instance:stats")(stats.get)() "stats": cache_memoize(600, prefix="memoize:instance:stats")(stats.get)()
if pref["instance__nodeinfo_stats_enabled"] if pref["instance__nodeinfo_stats_enabled"]

View File

@ -14,7 +14,7 @@ def test_nodeinfo_default(api_client):
"version": "2.0", "version": "2.0",
"software": OrderedDict([("name", "funkwhale"), ("version", api_version)]), "software": OrderedDict([("name", "funkwhale"), ("version", api_version)]),
"protocols": ["activitypub"], "protocols": ["activitypub"],
"services": OrderedDict([("inbound", []), ("outbound", [])]), "services": OrderedDict([("inbound", ["atom1.0"]), ("outbound", ["atom1.0"])]),
"openRegistrations": False, "openRegistrations": False,
"usage": { "usage": {
"users": OrderedDict( "users": OrderedDict(

View File

@ -0,0 +1 @@
Add atom1.0 to node info services (#2085)