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/account/removeblock.go | |
parent | go fmt (diff) | |
download | gotosocial-b95c80def6413df85ff53a5bcdbd553936c2d6e2.tar.xz |
change muchos things
Diffstat (limited to 'internal/processing/account/removeblock.go')
-rw-r--r-- | internal/processing/account/removeblock.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/processing/account/removeblock.go b/internal/processing/account/removeblock.go index 7e3d78076..06bafb3a4 100644 --- a/internal/processing/account/removeblock.go +++ b/internal/processing/account/removeblock.go @@ -22,10 +22,12 @@ import ( "context" "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) BlockRemove(ctx context.Context, requestingAccount *gtsmodel.Account, targetAccountID string) (*apimodel.Relationship, gtserror.WithCode) { @@ -52,9 +54,9 @@ func (p *processor) BlockRemove(ctx context.Context, requestingAccount *gtsmodel // block status changed so send the UNDO activity to the channel for async processing if blockChanged { - p.fromClientAPI <- gtsmodel.FromClientAPI{ - APObjectType: gtsmodel.ActivityStreamsBlock, - APActivityType: gtsmodel.ActivityStreamsUndo, + p.fromClientAPI <- messages.FromClientAPI{ + APObjectType: ap.ActivityBlock, + APActivityType: ap.ActivityUndo, GTSModel: block, OriginAccount: requestingAccount, TargetAccount: targetAccount, |