Enable replies to object without conversation/context

main
Thomas Sileo 2022-08-14 16:42:08 +02:00
parent 51bfc4bd30
commit 47b898bb13
1 changed files with 3 additions and 2 deletions

View File

@ -317,8 +317,9 @@ async def send_create(
if not in_reply_to_object: if not in_reply_to_object:
raise ValueError(f"Invalid in reply to {in_reply_to=}") raise ValueError(f"Invalid in reply to {in_reply_to=}")
if not in_reply_to_object.ap_context: if not in_reply_to_object.ap_context:
raise ValueError("Object has no context") logger.warning(f"Replied object {in_reply_to} has no context")
context = in_reply_to_object.ap_context else:
context = in_reply_to_object.ap_context
if in_reply_to_object.is_from_outbox: if in_reply_to_object.is_from_outbox:
await db_session.execute( await db_session.execute(