diff options
Diffstat (limited to 'internal/processing/workers/fromclientapi.go')
| -rw-r--r-- | internal/processing/workers/fromclientapi.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go index dbbeff220..5d9ebf41a 100644 --- a/internal/processing/workers/fromclientapi.go +++ b/internal/processing/workers/fromclientapi.go @@ -748,6 +748,14 @@ func (p *clientAPI) UpdateStatus(ctx context.Context, cMsg *messages.FromClientA } } + // Notify of the latest edit. + if editsLen := len(status.EditIDs); editsLen != 0 { + editID := status.EditIDs[editsLen-1] + if err := p.surface.notifyStatusEdit(ctx, status, editID); err != nil { + log.Errorf(ctx, "error notifying status edit: %v", err) + } + } + // 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) |
