summaryrefslogtreecommitdiff
path: root/internal/processing/fromcommon.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-06-03 13:58:57 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-03 13:58:57 +0200
commit21c1552daafbcedbd2e19b0c155ff8db9cff2be0 (patch)
tree00d945280a72d30d51acb618ad7257432d1f9e1a /internal/processing/fromcommon.go
parent[bugfix] Fix first item of thread dereferencing always being skipped (#1858) (diff)
downloadgotosocial-21c1552daafbcedbd2e19b0c155ff8db9cff2be0.tar.xz
[chore] Update versions, fix lint errors (#1860)
Diffstat (limited to 'internal/processing/fromcommon.go')
-rw-r--r--internal/processing/fromcommon.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/processing/fromcommon.go b/internal/processing/fromcommon.go
index 0adb576bc..03ebb1f1a 100644
--- a/internal/processing/fromcommon.go
+++ b/internal/processing/fromcommon.go
@@ -434,11 +434,7 @@ func (p *Processor) wipeStatus(ctx context.Context, statusToDelete *gtsmodel.Sta
}
// delete the status itself
- if err := p.state.DB.DeleteStatusByID(ctx, statusToDelete.ID); err != nil {
- return err
- }
-
- return nil
+ return p.state.DB.DeleteStatusByID(ctx, statusToDelete.ID)
}
// deleteStatusFromTimelines completely removes the given status from all timelines.