kopia lustrzana https://git.sr.ht/~tsileo/microblog.pub
				
				
				
			Tweak actor refresh
							rodzic
							
								
									7a665df2b5
								
							
						
					
					
						commit
						8e7fbcc501
					
				| 
						 | 
				
			
			@ -248,8 +248,9 @@ async def update_actor_if_needed(
 | 
			
		|||
        actor_in_db.ap_actor = ra.ap_actor
 | 
			
		||||
        actor_in_db.handle = ra.handle
 | 
			
		||||
        actor_in_db.ap_type = ra.ap_type
 | 
			
		||||
        actor_in_db.updated_at = now()
 | 
			
		||||
        await db_session.flush()
 | 
			
		||||
 | 
			
		||||
    actor_in_db.updated_at = now()
 | 
			
		||||
    await db_session.flush()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@dataclass
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2209,6 +2209,8 @@ async def save_to_inbox(
 | 
			
		|||
    elif activity_ro.ap_type == "View":
 | 
			
		||||
        # View is used by Peertube, there's nothing useful we can do with it
 | 
			
		||||
        await db_session.delete(inbox_object)
 | 
			
		||||
    elif activity_ro.ap_type == "Block":
 | 
			
		||||
        pass
 | 
			
		||||
    else:
 | 
			
		||||
        logger.warning(f"Received an unknown {inbox_object.ap_type} object")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue