summaryrefslogtreecommitdiff
path: root/internal/processing/application
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/application')
-rw-r--r--internal/processing/application/delete.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/processing/application/delete.go b/internal/processing/application/delete.go
index 7d1a3b495..6b3856bf0 100644
--- a/internal/processing/application/delete.go
+++ b/internal/processing/application/delete.go
@@ -66,5 +66,11 @@ func (p *Processor) Delete(
return nil, gtserror.NewErrorInternalError(err)
}
+ // Delete all scheduled statuses posted from the app.
+ if err := p.state.DB.DeleteScheduledStatusesByApplicationID(ctx, appID); err != nil {
+ err := gtserror.Newf("db error deleting scheduled statuses for app %s: %w", appID, err)
+ return nil, gtserror.NewErrorInternalError(err)
+ }
+
return apiApp, nil
}