diff --git a/docs/Release Notes/Release Notes/v0.93.0.md b/docs/Release Notes/Release Notes/v0.93.0.md index fd13d57b4..dfa83b73b 100644 --- a/docs/Release Notes/Release Notes/v0.93.0.md +++ b/docs/Release Notes/Release Notes/v0.93.0.md @@ -15,6 +15,7 @@ * [config.Session.cookieMaxAge is ignored](https://github.com/TriliumNext/Notes/issues/1709) by @pano9000 * [Return correct HTTP status code on failed login attempts instead of 200](https://github.com/TriliumNext/Notes/issues/1707) by @pano9000 * [Calendar stops displaying notes after adding a Day Note](https://github.com/TriliumNext/Notes/issues/1705) +* Full anonymization not redacting attachment titles. ## ✨ Improvements diff --git a/src/services/anonymization.ts b/src/services/anonymization.ts index e776cecf6..c7c191adc 100644 --- a/src/services/anonymization.ts +++ b/src/services/anonymization.ts @@ -13,11 +13,12 @@ function getFullAnonymizationScript() { .map((attr) => `'${attr.name}'`) .join(", "); - const anonymizeScript = ` + const anonymizeScript = /*sql*/`\ UPDATE etapi_tokens SET tokenHash = 'API token hash value'; UPDATE notes SET title = 'title' WHERE title NOT IN ('root', '_hidden', '_share'); UPDATE blobs SET content = 'text' WHERE content IS NOT NULL; UPDATE revisions SET title = 'title'; +UPDATE attachments SET title = 'title'; UPDATE attributes SET name = 'name', value = 'value' WHERE type = 'label' AND name NOT IN(${builtinAttrNames}); UPDATE attributes SET name = 'name' WHERE type = 'relation' AND name NOT IN (${builtinAttrNames});