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