diff options
author | 2023-06-10 11:11:54 +0200 | |
---|---|---|
committer | 2023-06-10 11:11:54 +0200 | |
commit | b0015a360441c5bd01498d9009caac1afb51a0b3 (patch) | |
tree | e0638961ce275094e5a234e6ec604034623348e5 /internal/processing | |
parent | [docs] Add example tracing infrastructure (#1866) (diff) | |
download | gotosocial-b0015a360441c5bd01498d9009caac1afb51a0b3.tar.xz |
[bugfix] Delete from list timeline on status deletion (#1878)
Diffstat (limited to 'internal/processing')
-rw-r--r-- | internal/processing/fromcommon.go | 4 |
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) } |