diff options
author | 2021-05-28 22:47:18 +0200 | |
---|---|---|
committer | 2021-05-28 22:47:18 +0200 | |
commit | cb54324430e7c4640a7aa5aac24932b5e91b71c4 (patch) | |
tree | a5193ee09656d808f589de20f77a5a455a5a6683 /internal/message/accountprocess.go | |
parent | Announce/boost (#35) (diff) | |
download | gotosocial-cb54324430e7c4640a7aa5aac24932b5e91b71c4.tar.xz |
federate account updates
Diffstat (limited to 'internal/message/accountprocess.go')
-rw-r--r-- | internal/message/accountprocess.go | 7 |
1 files changed, 7 insertions, 0 deletions
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) |