summaryrefslogtreecommitdiff
path: root/internal/processing/report
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/report')
-rw-r--r--internal/processing/report/create.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/processing/report/create.go b/internal/processing/report/create.go
index c65ae0d52..cac600006 100644
--- a/internal/processing/report/create.go
+++ b/internal/processing/report/create.go
@@ -91,12 +91,12 @@ func (p *Processor) Create(ctx context.Context, account *gtsmodel.Account, form
return nil, gtserror.NewErrorInternalError(err)
}
- p.state.Workers.EnqueueClientAPI(ctx, messages.FromClientAPI{
+ p.state.Workers.Client.Queue.Push(&messages.FromClientAPI{
APObjectType: ap.ObjectProfile,
APActivityType: ap.ActivityFlag,
GTSModel: report,
- OriginAccount: account,
- TargetAccount: targetAccount,
+ Origin: account,
+ Target: targetAccount,
})
apiReport, err := p.converter.ReportToAPIReport(ctx, report)