Don't fail to accept follow when the oubox cannot be processed

main
Thomas Sileo 2022-08-19 09:17:06 +02:00
parent de4915f837
commit 32e3a6dbf7
1 changed files with 4 additions and 1 deletions

View File

@ -1891,7 +1891,10 @@ async def save_to_inbox(
db_session.add(following)
# Pre-fetch the latest activities
try:
await _prefetch_actor_outbox(db_session, actor)
except Exception:
logger.exception(f"Failed to prefetch outbox for {actor.ap_id}")
elif activity_ro.ap_type == "Reject":
maybe_following = (
await db_session.scalars(