mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:42:26 -05:00 
			
		
		
		
	federate account updates
This commit is contained in:
		
					parent
					
						
							
								87177d840b
							
						
					
				
			
			
				commit
				
					
						cb54324430
					
				
			
		
					 7 changed files with 135 additions and 3 deletions
				
			
		|  | @ -188,6 +188,13 @@ func (p *processor) AccountUpdate(authed *oauth.Auth, form *apimodel.UpdateCrede | |||
| 		return nil, fmt.Errorf("could not fetch updated account %s: %s", authed.Account.ID, err) | ||||
| 	} | ||||
| 
 | ||||
| 	p.fromClientAPI <- gtsmodel.FromClientAPI{ | ||||
| 		APObjectType:   gtsmodel.ActivityStreamsProfile, | ||||
| 		APActivityType: gtsmodel.ActivityStreamsUpdate, | ||||
| 		GTSModel:       updatedAccount, | ||||
| 		OriginAccount:  updatedAccount, | ||||
| 	} | ||||
| 
 | ||||
| 	acctSensitive, err := p.tc.AccountToMastoSensitive(updatedAccount) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("could not convert account into mastosensitive account: %s", err) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue