From 19812b59ef1f67314ff8bdc5b6215c59d2f74678 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 May 2020 14:39:21 +0000 Subject: [PATCH] MediaType for content --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index d952ec3c..8a2f3cb8 100644 --- a/posts.py +++ b/posts.py @@ -694,7 +694,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, httpPrefix + '://' + domain + '/users/' + nickname + \ '/statuses/' + statusNumber + '/replies' newPost = { - "@context": postContext, + '@context': postContext, 'id': newPostId+'/activity', 'capability': capabilityIdList, 'type': 'Create', @@ -715,6 +715,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int, 'sensitive': sensitive, 'atomUri': newPostId, 'inReplyToAtomUri': inReplyToAtomUri, + 'mediaType': 'text/html', 'content': content, 'contentMap': { 'en': content