From a679f48fcfe9897d1ff5dc86a4b4b4fa441855e9 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Mon, 7 May 2018 23:26:48 +0200 Subject: [PATCH] See #192: removed useless localPosts and localComments --- api/funkwhale_api/instance/nodeinfo.py | 4 +--- api/tests/instance/test_nodeinfo.py | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/api/funkwhale_api/instance/nodeinfo.py b/api/funkwhale_api/instance/nodeinfo.py index 22d1a889..c687b4ba 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 5f5ca920..b9c8c764 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'], -- GitLab