inbox print
parent
b4ef69eded
commit
4aae212769
|
@ -44,7 +44,7 @@ class Inbox(Resource):
|
|||
raise e.NotFound("User does not exist")
|
||||
self.args = self.post_parser.parse_args()
|
||||
json_payload = request.get_json()
|
||||
logger.info("aaa")
|
||||
logger.warning(json_payload)
|
||||
logger.info("inbox hit")
|
||||
actor = json_payload["actor"]
|
||||
message = json_payload["object"]["content"]
|
||||
logger.info(f"Fediseer Inbox Received: From: {actor} | {message}")
|
||||
return {"message": "delivered"}, 200
|
||||
|
|
|
@ -57,5 +57,7 @@ def wellknown_redirect():
|
|||
def inbox():
|
||||
# Access the JSON payload
|
||||
json_payload = request.get_json()
|
||||
logger.info(json_payload)
|
||||
actor = json_payload["actor"]
|
||||
message = json_payload["object"]["content"]
|
||||
logger.info(f"Shared Inbox Received: From: {actor} | {message}")
|
||||
return 'ok', 200
|
||||
|
|
Loading…
Reference in New Issue