diff options
author | 2021-05-28 19:57:04 +0200 | |
---|---|---|
committer | 2021-05-28 19:57:04 +0200 | |
commit | 87177d840b9703f572392ef4bd0f5013fd5c3a77 (patch) | |
tree | c59388998d5defd5ec3577483f70736238953f72 /internal/message/statusprocess.go | |
parent | Notifications (#34) (diff) | |
download | gotosocial-87177d840b9703f572392ef4bd0f5013fd5c3a77.tar.xz |
Announce/boost (#35)
Remote boosts incoming/outgoing now working.
Diffstat (limited to 'internal/message/statusprocess.go')
-rw-r--r-- | internal/message/statusprocess.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/message/statusprocess.go b/internal/message/statusprocess.go index f64c35948..40c7b30ca 100644 --- a/internal/message/statusprocess.go +++ b/internal/message/statusprocess.go @@ -291,6 +291,15 @@ func (p *processor) StatusBoost(authed *oauth.Auth, targetStatusID string) (*api return nil, NewErrorInternalError(err) } + // send it to the processor for async processing + p.fromClientAPI <- gtsmodel.FromClientAPI{ + APObjectType: gtsmodel.ActivityStreamsAnnounce, + APActivityType: gtsmodel.ActivityStreamsCreate, + GTSModel: boostWrapperStatus, + OriginAccount: authed.Account, + TargetAccount: targetAccount, + } + // return the frontend representation of the new status to the submitter mastoStatus, err := p.tc.StatusToMasto(boostWrapperStatus, authed.Account, authed.Account, targetAccount, nil, targetStatus) if err != nil { |