mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:32:24 -05:00 
			
		
		
		
	update remote account get/deref logic
This commit is contained in:
		
					parent
					
						
							
								3c1eb155e4
							
						
					
				
			
			
				commit
				
					
						667e7f112c
					
				
			
		
					 17 changed files with 244 additions and 160 deletions
				
			
		|  | @ -54,7 +54,7 @@ func (p *processor) GetUser(ctx context.Context, requestedUsername string, reque | |||
| 
 | ||||
| 		// if we're not already handshaking/dereferencing a remote account, dereference it now | ||||
| 		if !p.federator.Handshaking(ctx, requestedUsername, requestingAccountURI) { | ||||
| 			requestingAccount, _, err := p.federator.GetRemoteAccount(ctx, requestedUsername, requestingAccountURI, false) | ||||
| 			requestingAccount, err := p.federator.GetRemoteAccount(ctx, requestedUsername, requestingAccountURI, false, false) | ||||
| 			if err != nil { | ||||
| 				return nil, gtserror.NewErrorNotAuthorized(err) | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue