summaryrefslogtreecommitdiff
path: root/internal/processing/status/fave.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/status/fave.go')
-rw-r--r--internal/processing/status/fave.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/internal/processing/status/fave.go b/internal/processing/status/fave.go
index 52e6b9d43..70560899b 100644
--- a/internal/processing/status/fave.go
+++ b/internal/processing/status/fave.go
@@ -160,15 +160,6 @@ func (p *Processor) FaveCreate(
return nil, gtserror.NewErrorInternalError(err)
}
- // Process new status fave side effects.
- p.state.Workers.Client.Queue.Push(&messages.FromClientAPI{
- APObjectType: ap.ActivityLike,
- APActivityType: ap.ActivityCreate,
- GTSModel: gtsFave,
- Origin: requester,
- Target: status.Account,
- })
-
// If the fave target status replies to a status
// that we own, and has a pending interaction
// request, use the fave as an implicit accept.
@@ -186,6 +177,16 @@ func (p *Processor) FaveCreate(
status.PendingApproval = util.Ptr(false)
}
+ // Queue remaining fave side effects
+ // (send out fave, update timeline, etc).
+ p.state.Workers.Client.Queue.Push(&messages.FromClientAPI{
+ APObjectType: ap.ActivityLike,
+ APActivityType: ap.ActivityCreate,
+ GTSModel: gtsFave,
+ Origin: requester,
+ Target: status.Account,
+ })
+
return p.c.GetAPIStatus(ctx, requester, status)
}