From 95b677ce99669236e631a2f0c7b6bab1b7a6597e Mon Sep 17 00:00:00 2001 From: db0 Date: Mon, 26 Jun 2023 11:31:32 +0200 Subject: [PATCH] inbox except --- fediseer/apis/v1/activitypub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fediseer/apis/v1/activitypub.py b/fediseer/apis/v1/activitypub.py index b0a9214..c0aa845 100644 --- a/fediseer/apis/v1/activitypub.py +++ b/fediseer/apis/v1/activitypub.py @@ -45,6 +45,9 @@ class Inbox(Resource): self.args = self.post_parser.parse_args() json_payload = request.get_json() actor = json_payload["actor"] - message = json_payload["object"]["content"] + try: + message = json_payload["object"]["content"] + except: + logger.info(f"Received unexpected invox payload: {json_payload}") logger.info(f"Fediseer Inbox Received: From: {actor} | {message}") return {"message": "delivered"}, 200