mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-15 02:38:34 -06:00
becca conversion WIP
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
const repository = require("../repository");
|
||||
const utils = require('../utils');
|
||||
const becca = require("../becca/becca.js");
|
||||
|
||||
function exportToOpml(taskContext, branch, version, res) {
|
||||
if (!['1.0', '2.0'].includes(version)) {
|
||||
@@ -13,7 +14,7 @@ function exportToOpml(taskContext, branch, version, res) {
|
||||
const note = branch.getNote();
|
||||
|
||||
function exportNoteInner(branchId) {
|
||||
const branch = repository.getBranch(branchId);
|
||||
const branch = becca.getBranch(branchId);
|
||||
const note = branch.getNote();
|
||||
|
||||
if (note.hasOwnedLabel('excludeFromExport')) {
|
||||
|
||||
@@ -273,7 +273,7 @@ ${content}
|
||||
return;
|
||||
}
|
||||
|
||||
const note = repository.getNote(noteMeta.noteId);
|
||||
const note = becca.getNote(noteMeta.noteId);
|
||||
|
||||
notePaths[note.noteId] = filePathPrefix + (noteMeta.dataFileName || noteMeta.dirFileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user