From 086ddbb00494697dcef1cfece297dd9b1c140368 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jul 2019 21:52:25 +0100 Subject: [PATCH] uploadMedia endpoint --- person.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index 9121c5b1f..d0c607888 100644 --- a/person.py +++ b/person.py @@ -51,7 +51,11 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \ 'toot': 'http://joinmastodon.org/ns#', 'value': 'schema:value'}], 'attachment': [], - 'endpoints': {'sharedInbox': httpPrefix+'://'+domain+'/inbox'}, + 'endpoints': { + 'id': httpPrefix+'://'+domain+'/users/'+nickname+'/endpoints' + 'sharedInbox': httpPrefix+'://'+domain+'/inbox', + 'uploadMedia': httpPrefix+'://'+domain+'/users/'+nickname+'/endpoints/uploadMedia' + }, 'featured': httpPrefix+'://'+domain+'/users/'+nickname+'/collections/featured', 'followers': httpPrefix+'://'+domain+'/users/'+nickname+'/followers', 'following': httpPrefix+'://'+domain+'/users/'+nickname+'/following',