summaryrefslogtreecommitdiff
path: root/internal/processing/workers/fromclientapi.go
diff options
context:
space:
mode:
authorLibravatar Sam Lade <sam@sentynel.com>2023-12-16 11:55:49 +0000
committerLibravatar GitHub <noreply@github.com>2023-12-16 12:55:49 +0100
commit285d55dda8b4de70661b16db4986d47e4e586ea2 (patch)
tree17e460f916370898d3568c6ba569686e9350aedd /internal/processing/workers/fromclientapi.go
parent[feature] Run ANALYZE after migrations on SQLite (#2428) (diff)
downloadgotosocial-285d55dda8b4de70661b16db4986d47e4e586ea2.tar.xz
[feature] Push status edit messages into open streams (#2418)
* push status edit messages into open streams * fix a few comments * test++ * commented out code? moi?
Diffstat (limited to 'internal/processing/workers/fromclientapi.go')
-rw-r--r--internal/processing/workers/fromclientapi.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go
index e3f1e2d76..05b9acc1f 100644
--- a/internal/processing/workers/fromclientapi.go
+++ b/internal/processing/workers/fromclientapi.go
@@ -416,6 +416,11 @@ func (p *clientAPI) UpdateStatus(ctx context.Context, cMsg messages.FromClientAP
}
}
+ // 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)
+ }
+
return nil
}