From 4cf76a2bfcc2c19bdd34f1bd58d8545d3499481b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 21 Sep 2022 19:55:52 +0200 Subject: [chore] Tidy up status deletion, remove from cache too (#845) * add func for deleting status from db + cache * move deletes entirely back to processor and also only do a delete if the requesting account owns the item being deleted * tidy up unboost processing * delete status more efficiently * fix wrong account id on remote test attachments * fix federator test --- internal/db/status.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/status.go') diff --git a/internal/db/status.go b/internal/db/status.go index 307d9ea74..55cec5beb 100644 --- a/internal/db/status.go +++ b/internal/db/status.go @@ -41,6 +41,9 @@ type Status interface { // UpdateStatus updates one status in the database and returns it to the caller. UpdateStatus(ctx context.Context, status *gtsmodel.Status) (*gtsmodel.Status, Error) + // DeleteStatusByID deletes one status from the database. + DeleteStatusByID(ctx context.Context, id string) Error + // CountStatusReplies returns the amount of replies recorded for a status, or an error if something goes wrong CountStatusReplies(ctx context.Context, status *gtsmodel.Status) (int, Error) -- cgit v1.2.3