inbox print

pull/8/head
db0 2023-06-24 15:18:04 +02:00
parent b4ef69eded
commit 4aae212769
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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