forked from indymedia/epicyon
Posting to inbox
parent
e5a03e0fe9
commit
9c2859b616
6
posts.py
6
posts.py
|
@ -206,3 +206,9 @@ def createPublicPost(username: str, domain: str, https: bool, content: str, foll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return newPost
|
return newPost
|
||||||
|
|
||||||
|
def postToInbox(session,postJson,inboxUrl: str):
|
||||||
|
"""Post a json message to the inbox of another person
|
||||||
|
"""
|
||||||
|
postResult = session.post(url = inboxUrl, data = postJson)
|
||||||
|
return postResult.text
|
||||||
|
|
Loading…
Reference in New Issue