Use actor ID in NotSubscribed error
This commit is contained in:
		
							parent
							
								
									d0a728a9b5
								
							
						
					
					
						commit
						57ed79add5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -43,7 +43,7 @@ pub(crate) async fn route( | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if !is_connected && !valid_without_listener(&input)? { |     if !is_connected && !valid_without_listener(&input)? { | ||||||
|         return Err(MyError::NotSubscribed(actor.inbox.to_string())); |         return Err(MyError::NotSubscribed(actor.id.to_string())); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if config.validate_signatures() && verified.is_none() { |     if config.validate_signatures() && verified.is_none() { | ||||||
|  | @ -155,7 +155,7 @@ async fn handle_undo( | ||||||
|             jobs.queue(Forward::new(input, actor))?; |             jobs.queue(Forward::new(input, actor))?; | ||||||
|             return Ok(()); |             return Ok(()); | ||||||
|         } else { |         } else { | ||||||
|             return Err(MyError::NotSubscribed(actor.inbox.to_string())); |             return Err(MyError::NotSubscribed(actor.id.to_string())); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue