mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Don't fail to accept follow when the oubox cannot be processed
This commit is contained in:
		@@ -1891,7 +1891,10 @@ async def save_to_inbox(
 | 
			
		||||
                    db_session.add(following)
 | 
			
		||||
 | 
			
		||||
                    # Pre-fetch the latest activities
 | 
			
		||||
                    await _prefetch_actor_outbox(db_session, actor)
 | 
			
		||||
                    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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user