mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-30 17:43:44 +00:00
Posting to inbox
This commit is contained in:
1 parent
e5a03e0fe9
commit
9c2859b616
1 file changed
+6
@@ -206,3 +206,9 @@ def createPublicPost(username: str, domain: str, https: bool, content: str, foll
|
||||
}
|
||||
}
|
||||
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
|
||||
Reference in new issue
Block a user