Skip to content

Build your personal knowledge base with Trilium Notes

fix OPML import

zadam767aaa18f483
diff --git a/package.json b/package.json
index 3d0016a462..e762d8c370 100644
--- a/package.json
+++ b/package.json
@@ -74,7 +74,8 @@
"turndown": "5.0.3",
"turndown-plugin-gfm": "1.0.2",
"unescape": "1.0.1",
- "ws": "7.2.0"
+ "ws": "7.2.0",
+ "xml2js": "0.4.22"
},
"devDependencies": {
"electron": "6.0.12",
diff --git a/src/services/import/opml.js b/src/services/import/opml.js
index b4bd1a70bf..fc993dbf71 100644
--- a/src/services/import/opml.js
+++ b/src/services/import/opml.js
@@ -48,6 +48,7 @@ async function importOpml(taskContext, fileBuffer, parentNote) {
parentNoteId,
title,
content,
+ type: 'text',
isProtected: parentNote.isProtected && protectedSessionService.isProtectedSessionAvailable()
});