forked from indymedia/epicyon
Capabilities stubs
parent
b11c8e4735
commit
d5ab900570
6
posts.py
6
posts.py
|
@ -323,6 +323,8 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
||||||
postTo=postCC
|
postTo=postCC
|
||||||
postCC=''
|
postCC=''
|
||||||
newPostId=httpPrefix+'://'+domain+'/users/'+nickname+'/statuses/'+statusNumber
|
newPostId=httpPrefix+'://'+domain+'/users/'+nickname+'/statuses/'+statusNumber
|
||||||
|
# TODO
|
||||||
|
capabilityUrl=''
|
||||||
sensitive=False
|
sensitive=False
|
||||||
summary=None
|
summary=None
|
||||||
if subject:
|
if subject:
|
||||||
|
@ -331,6 +333,7 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
||||||
if not clientToServer:
|
if not clientToServer:
|
||||||
newPost = {
|
newPost = {
|
||||||
'id': newPostId+'/activity',
|
'id': newPostId+'/activity',
|
||||||
|
'capability': capabilityUrl,
|
||||||
'type': 'Create',
|
'type': 'Create',
|
||||||
'actor': httpPrefix+'://'+domain+'/users/'+nickname,
|
'actor': httpPrefix+'://'+domain+'/users/'+nickname,
|
||||||
'published': published,
|
'published': published,
|
||||||
|
@ -410,8 +413,11 @@ def outboxMessageCreateWrap(httpPrefix: str,nickname: str,domain: str,messageJso
|
||||||
cc=[]
|
cc=[]
|
||||||
if messageJson.get('cc'):
|
if messageJson.get('cc'):
|
||||||
cc=messageJson['cc']
|
cc=messageJson['cc']
|
||||||
|
# TODO
|
||||||
|
capabilityUrl=''
|
||||||
newPost = {
|
newPost = {
|
||||||
'id': newPostId+'/activity',
|
'id': newPostId+'/activity',
|
||||||
|
'capability': capabilityUrl,
|
||||||
'type': 'Create',
|
'type': 'Create',
|
||||||
'actor': httpPrefix+'://'+domain+'/users/'+nickname,
|
'actor': httpPrefix+'://'+domain+'/users/'+nickname,
|
||||||
'published': published,
|
'published': published,
|
||||||
|
|
Loading…
Reference in New Issue