Improve inbox processing

main
Thomas Sileo 2022-08-21 09:22:14 +02:00
parent b71bc39f13
commit 827ba5cd2d
2 changed files with 3 additions and 1 deletions

View File

@ -351,6 +351,8 @@ async def fetch_conversation_root(
db_session, ap.get_actor_id(raw_reply)
)
in_reply_to_object = RemoteObject(raw_reply, actor=raw_reply_actor)
except (ap.ObjectNotFoundError, ap.ObjectIsGoneError):
return await fetch_conversation_root(db_session, obj, is_root=True)
except httpx.HTTPStatusError as http_status_error:
if 400 <= http_status_error.response.status_code < 500:
# We may not have access, in this case consider if root

View File

@ -119,7 +119,7 @@ async def process_next_incoming_activity(
)
except httpx.TimeoutException as exc:
url = exc._request.url if exc._request else None
logger.error(f"HTTP timeout when fetching {url}")
logger.error(f"Failed, HTTP timeout when fetching {url}")
next_activity.error = traceback.format_exc()
_set_next_try(next_activity)
except Exception: