mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
excludeFromExport support also in OPML
This commit is contained in:
@@ -12,6 +12,11 @@ async function exportToOpml(branch, res) {
|
||||
async function exportNoteInner(branchId) {
|
||||
const branch = await repository.getBranch(branchId);
|
||||
const note = await branch.getNote();
|
||||
|
||||
if (await note.hasLabel('excludeFromExport')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const title = (branch.prefix ? (branch.prefix + ' - ') : '') + note.title;
|
||||
|
||||
const preparedTitle = prepareText(title);
|
||||
|
||||
Reference in New Issue
Block a user