diff options
author | 2021-08-31 15:59:12 +0200 | |
---|---|---|
committer | 2021-08-31 15:59:12 +0200 | |
commit | b95c80def6413df85ff53a5bcdbd553936c2d6e2 (patch) | |
tree | fa3fcc7e4bd2deaf371c324279fd6521ffb24445 /internal/processing/status/unboost.go | |
parent | go fmt (diff) | |
download | gotosocial-b95c80def6413df85ff53a5bcdbd553936c2d6e2.tar.xz |
change muchos things
Diffstat (limited to 'internal/processing/status/unboost.go')
-rw-r--r-- | internal/processing/status/unboost.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/processing/status/unboost.go b/internal/processing/status/unboost.go index c3c667a71..13c24d638 100644 --- a/internal/processing/status/unboost.go +++ b/internal/processing/status/unboost.go @@ -23,10 +23,12 @@ import ( "errors" "fmt" + "github.com/superseriousbusiness/gotosocial/internal/ap" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "github.com/superseriousbusiness/gotosocial/internal/messages" ) func (p *processor) Unboost(ctx context.Context, requestingAccount *gtsmodel.Account, application *gtsmodel.Application, targetStatusID string) (*apimodel.Status, gtserror.WithCode) { @@ -89,9 +91,9 @@ func (p *processor) Unboost(ctx context.Context, requestingAccount *gtsmodel.Acc gtsBoost.BoostOf.Account = targetStatus.Account // send it back to the processor for async processing - p.fromClientAPI <- gtsmodel.FromClientAPI{ - APObjectType: gtsmodel.ActivityStreamsAnnounce, - APActivityType: gtsmodel.ActivityStreamsUndo, + p.fromClientAPI <- messages.FromClientAPI{ + APObjectType: ap.ActivityAnnounce, + APActivityType: ap.ActivityUndo, GTSModel: gtsBoost, OriginAccount: requestingAccount, TargetAccount: targetStatus.Account, |