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:
parent
e3a28aaeb3
commit
a05b44f27b
|
@ -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"]
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Add atom1.0 to node info services (#2085)
|
Loading…
Reference in New Issue