See #192: removed useless localPosts and localComments

This commit is contained in:
Eliot Berriot 2018-05-07 23:26:48 +02:00
parent 310179c19e
commit a679f48fcf
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 3 additions and 9 deletions

View File

@ -27,9 +27,7 @@ def get():
'usage': { 'usage': {
'users': { 'users': {
'total': 0, 'total': 0,
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences.get('instance__short_description'), 'shortDescription': preferences.get('instance__short_description'),

View File

@ -33,9 +33,7 @@ def test_nodeinfo_dump(preferences, mocker):
'usage': { 'usage': {
'users': { 'users': {
'total': stats['users'], 'total': stats['users'],
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences['instance__short_description'], 'shortDescription': preferences['instance__short_description'],
@ -90,9 +88,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
'usage': { 'usage': {
'users': { 'users': {
'total': 0, 'total': 0,
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences['instance__short_description'], 'shortDescription': preferences['instance__short_description'],