Mastodon api response to timelines

main
Bob Mottram 2021-10-13 12:27:37 +01:00
parent 198381e99a
commit 9e1a26c764
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ def mastoApiV1Response(path: str, callingDomain: str,
sendJson = []
sendJsonStr = 'masto API statuses sent ' + path
elif path.startswith('/api/v1/timelines'):
sendJson = []
sendJson = {
'error': 'This method requires an authenticated user'
}
sendJsonStr = 'masto API timelines sent ' + path
elif path.startswith('/api/v1/custom_emojis'):
sendJson = customEmoji