From 0dd0cf916d0abee8f7818d4ef4e26dec28c4f8ef Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Oct 2021 12:56:49 +0100 Subject: [PATCH] Indicate path for api requests --- mastoapiv1.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mastoapiv1.py b/mastoapiv1.py index b099685f9..8bcd5b24a 100644 --- a/mastoapiv1.py +++ b/mastoapiv1.py @@ -145,31 +145,31 @@ def mastoApiV1Response(path: str, callingDomain: str, if path.startswith('/api/v1/blocks'): sendJson = [] - sendJsonStr = 'masto API instance blocks sent' + sendJsonStr = 'masto API instance blocks sent ' + path elif path.startswith('/api/v1/favorites'): sendJson = [] - sendJsonStr = 'masto API favorites sent' + sendJsonStr = 'masto API favorites sent ' + path elif path.startswith('/api/v1/follow_requests'): sendJson = [] - sendJsonStr = 'masto API follow requests sent' + sendJsonStr = 'masto API follow requests sent ' + path elif path.startswith('/api/v1/mutes'): sendJson = [] - sendJsonStr = 'masto API mutes sent' + sendJsonStr = 'masto API mutes sent ' + path elif path.startswith('/api/v1/notifications'): sendJson = [] - sendJsonStr = 'masto API notifications sent' + sendJsonStr = 'masto API notifications sent ' + path elif path.startswith('/api/v1/reports'): sendJson = [] - sendJsonStr = 'masto API reports sent' + sendJsonStr = 'masto API reports sent ' + path elif path.startswith('/api/v1/statuses'): sendJson = [] - sendJsonStr = 'masto API statuses sent' + sendJsonStr = 'masto API statuses sent ' + path elif path.startswith('/api/v1/timelines'): sendJson = [] - sendJsonStr = 'masto API timelines sent' + sendJsonStr = 'masto API timelines sent ' + path elif path.startswith('/api/v1/custom_emojis'): sendJson = customEmoji - sendJsonStr = 'masto API custom emojis sent' + sendJsonStr = 'masto API custom emojis sent ' + path adminNickname = getConfigParam(baseDir, 'admin') if adminNickname and path == '/api/v1/instance':