excludeFromExport support also in OPML

This commit is contained in:
azivner 2018-11-19 09:34:05 +01:00
parent b1ed022771
commit 00ce379962
2 changed files with 6 additions and 1 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.24.0-beta",
"version": "0.24.1-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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);