Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit b4c74af

Browse files
committed
fix(anonymization): full anonymization not redacting attachment titles
1 parent afac983 commit b4c74af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/Release Notes/Release Notes/v0.93.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* [config.Session.cookieMaxAge is ignored](https://github.com/TriliumNext/Notes/issues/1709) by @pano9000
1616
* [Return correct HTTP status code on failed login attempts instead of 200](https://github.com/TriliumNext/Notes/issues/1707) by @pano9000
1717
* [Calendar stops displaying notes after adding a Day Note](https://github.com/TriliumNext/Notes/issues/1705)
18+
* Full anonymization not redacting attachment titles.
1819

1920
## ✨ Improvements
2021

src/services/anonymization.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ function getFullAnonymizationScript() {
1313
.map((attr) => `'${attr.name}'`)
1414
.join(", ");
1515

16-
const anonymizeScript = `
16+
const anonymizeScript = /*sql*/`\
1717
UPDATE etapi_tokens SET tokenHash = 'API token hash value';
1818
UPDATE notes SET title = 'title' WHERE title NOT IN ('root', '_hidden', '_share');
1919
UPDATE blobs SET content = 'text' WHERE content IS NOT NULL;
2020
UPDATE revisions SET title = 'title';
21+
UPDATE attachments SET title = 'title';
2122
2223
UPDATE attributes SET name = 'name', value = 'value' WHERE type = 'label' AND name NOT IN(${builtinAttrNames});
2324
UPDATE attributes SET name = 'name' WHERE type = 'relation' AND name NOT IN (${builtinAttrNames});

0 commit comments

Comments
 (0)