summaryrefslogtreecommitdiff
path: root/internal/processing/workers/fromfediapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/workers/fromfediapi.go')
-rw-r--r--internal/processing/workers/fromfediapi.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go
index 59dd582f4..7aa858603 100644
--- a/internal/processing/workers/fromfediapi.go
+++ b/internal/processing/workers/fromfediapi.go
@@ -998,11 +998,6 @@ func (p *fediAPI) UpdateStatus(ctx context.Context, fMsg *messages.FromFediAPI)
}
}
- // Push message that the status has been edited to streams.
- if err := p.surface.timelineStatusUpdate(ctx, status); err != nil {
- log.Errorf(ctx, "error streaming status edit: %v", err)
- }
-
// Notify any *new* mentions added
// to this status by the editor.
for _, mention := range status.Mentions {
@@ -1022,6 +1017,11 @@ func (p *fediAPI) UpdateStatus(ctx context.Context, fMsg *messages.FromFediAPI)
}
}
+ // Push message that the status has been edited to streams.
+ if err := p.surface.timelineStatusUpdate(ctx, status); err != nil {
+ log.Errorf(ctx, "error streaming status edit: %v", err)
+ }
+
// Status representation changed, uncache from timelines.
p.surface.invalidateStatusFromTimelines(ctx, status.ID)