feat(lists): add option to skip cleaning of Plaintext data (#2036)

* Added: Plaintext untouched

* Revert "Added: Plaintext untouched"

This reverts commit e6ceaec5f4776cfc8335ae2c02e1caa4a2bbb0bc.

* Added: skipCleanSanitize

* TS definition for List object doesn't yet know about the new skip_clean_sanitize property

* Update: ListForms.tsx with the bypass option

* Update: Database internals for skip_clean_sanitize

* Fix: Snake case
This commit is contained in:
Lucian Maly 2025-06-01 23:27:48 +10:00 committed by GitHub
parent 9caf7807de
commit 4ce2241991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 49 additions and 12 deletions

View file

@ -98,7 +98,11 @@ func (s *service) plaintext(ctx context.Context, list *domain.List) error {
if title == "" {
continue
}
titles = append(titles, processTitle(title, list.MatchRelease)...)
if list.SkipCleanSanitize {
titles = append(titles, title) // Add title as-is
} else {
titles = append(titles, processTitle(title, list.MatchRelease)...) // Existing logic
}
}
if len(titles) == 0 {