From a5fd6f427bab2cac03b4da5668eed18b900ba3be Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:56:00 +0200 Subject: Deletes+unboosts (#52) * Status deletes properly streamed now. * Unboosts now work locally and federated. * Documentation updates. --- internal/processing/fromcommon.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/processing/fromcommon.go') diff --git a/internal/processing/fromcommon.go b/internal/processing/fromcommon.go index e10f75441..d719b7f5f 100644 --- a/internal/processing/fromcommon.go +++ b/internal/processing/fromcommon.go @@ -401,5 +401,9 @@ func (p *processor) timelineStatusForAccount(status *gtsmodel.Status, accountID } func (p *processor) deleteStatusFromTimelines(status *gtsmodel.Status) error { - return p.timelineManager.WipeStatusFromAllTimelines(status.ID) + if err := p.timelineManager.WipeStatusFromAllTimelines(status.ID); err != nil { + return err + } + + return p.streamingProcessor.StreamDelete(status.ID) } -- cgit v1.2.3