summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-06-10 11:11:54 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-10 11:11:54 +0200
commitb0015a360441c5bd01498d9009caac1afb51a0b3 (patch)
treee0638961ce275094e5a234e6ec604034623348e5 /internal
parent[docs] Add example tracing infrastructure (#1866) (diff)
downloadgotosocial-b0015a360441c5bd01498d9009caac1afb51a0b3.tar.xz
[bugfix] Delete from list timeline on status deletion (#1878)
Diffstat (limited to 'internal')
-rw-r--r--internal/processing/fromcommon.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/processing/fromcommon.go b/internal/processing/fromcommon.go
index 03ebb1f1a..fcb539087 100644
--- a/internal/processing/fromcommon.go
+++ b/internal/processing/fromcommon.go
@@ -444,6 +444,10 @@ func (p *Processor) deleteStatusFromTimelines(ctx context.Context, status *gtsmo
return err
}
+ if err := p.state.Timelines.List.WipeItemFromAllTimelines(ctx, status.ID); err != nil {
+ return err
+ }
+
return p.stream.Delete(status.ID)
}