diff --git a/services/moderation/reporting.go b/services/moderation/reporting.go index 21a788823b..e2bbb77f63 100644 --- a/services/moderation/reporting.go +++ b/services/moderation/reporting.go @@ -145,7 +145,7 @@ func RemoveResolvedReports(ctx context.Context, timeout time.Duration) error { return err } - if report.ShadowCopyID != 0 { + if report.ShadowCopyID.valid && report.ShadowCopyID.Int64 != 0 { _, err := db.GetEngine(ctx).ID(report.ShadowCopyID).Delete(&moderation.AbuseReportShadowCopy{}) if err != nil { return err