From 47b898bb131aa0b3691e8e4eb4c2696aef829e80 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 14 Aug 2022 16:42:08 +0200 Subject: [PATCH] Enable replies to object without conversation/context --- app/boxes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/boxes.py b/app/boxes.py index fcbda71..c14e2b7 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -317,8 +317,9 @@ async def send_create( if not in_reply_to_object: raise ValueError(f"Invalid in reply to {in_reply_to=}") if not in_reply_to_object.ap_context: - raise ValueError("Object has no context") - context = in_reply_to_object.ap_context + logger.warning(f"Replied object {in_reply_to} has no context") + else: + context = in_reply_to_object.ap_context if in_reply_to_object.is_from_outbox: await db_session.execute(