forked from indymedia/epicyon
MediaType for content
parent
dc68e2c20b
commit
19812b59ef
3
posts.py
3
posts.py
|
@ -694,7 +694,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
httpPrefix + '://' + domain + '/users/' + nickname + \
|
httpPrefix + '://' + domain + '/users/' + nickname + \
|
||||||
'/statuses/' + statusNumber + '/replies'
|
'/statuses/' + statusNumber + '/replies'
|
||||||
newPost = {
|
newPost = {
|
||||||
"@context": postContext,
|
'@context': postContext,
|
||||||
'id': newPostId+'/activity',
|
'id': newPostId+'/activity',
|
||||||
'capability': capabilityIdList,
|
'capability': capabilityIdList,
|
||||||
'type': 'Create',
|
'type': 'Create',
|
||||||
|
@ -715,6 +715,7 @@ def createPostBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
'sensitive': sensitive,
|
'sensitive': sensitive,
|
||||||
'atomUri': newPostId,
|
'atomUri': newPostId,
|
||||||
'inReplyToAtomUri': inReplyToAtomUri,
|
'inReplyToAtomUri': inReplyToAtomUri,
|
||||||
|
'mediaType': 'text/html',
|
||||||
'content': content,
|
'content': content,
|
||||||
'contentMap': {
|
'contentMap': {
|
||||||
'en': content
|
'en': content
|
||||||
|
|
Loading…
Reference in New Issue