diff --git a/api/funkwhale_api/instance/nodeinfo.py b/api/funkwhale_api/instance/nodeinfo.py index 22d1a88928770c131714a2bb97c26ec7cb9a8b15..c687b4ba02063aeda55ba0a2cedcaca2e40e6171 100644 --- a/api/funkwhale_api/instance/nodeinfo.py +++ b/api/funkwhale_api/instance/nodeinfo.py @@ -27,9 +27,7 @@ def get(): 'usage': { 'users': { 'total': 0, - }, - 'localPosts': 0, - 'localComments': 0, + } }, 'metadata': { 'shortDescription': preferences.get('instance__short_description'), diff --git a/api/tests/instance/test_nodeinfo.py b/api/tests/instance/test_nodeinfo.py index 5f5ca920c433352a6a947337815f7f1ccfdd7728..b9c8c76464b8112d45a125ea823b92bbd35d8c32 100644 --- a/api/tests/instance/test_nodeinfo.py +++ b/api/tests/instance/test_nodeinfo.py @@ -33,9 +33,7 @@ def test_nodeinfo_dump(preferences, mocker): 'usage': { 'users': { 'total': stats['users'], - }, - 'localPosts': 0, - 'localComments': 0, + } }, 'metadata': { 'shortDescription': preferences['instance__short_description'], @@ -90,9 +88,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker): 'usage': { 'users': { 'total': 0, - }, - 'localPosts': 0, - 'localComments': 0, + } }, 'metadata': { 'shortDescription': preferences['instance__short_description'],