From cb54324430e7c4640a7aa5aac24932b5e91b71c4 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Fri, 28 May 2021 22:47:18 +0200 Subject: federate account updates --- internal/message/accountprocess.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/message/accountprocess.go') diff --git a/internal/message/accountprocess.go b/internal/message/accountprocess.go index 8847e5789..ea03ab0ff 100644 --- a/internal/message/accountprocess.go +++ b/internal/message/accountprocess.go @@ -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) -- cgit v1.2.3