mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
excludeFromExport support also in OPML
This commit is contained in:
parent
b1ed022771
commit
00ce379962
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.24.0-beta",
|
"version": "0.24.1-beta",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -12,6 +12,11 @@ async function exportToOpml(branch, res) {
|
|||||||
async function exportNoteInner(branchId) {
|
async function exportNoteInner(branchId) {
|
||||||
const branch = await repository.getBranch(branchId);
|
const branch = await repository.getBranch(branchId);
|
||||||
const note = await branch.getNote();
|
const note = await branch.getNote();
|
||||||
|
|
||||||
|
if (await note.hasLabel('excludeFromExport')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const title = (branch.prefix ? (branch.prefix + ' - ') : '') + note.title;
|
const title = (branch.prefix ? (branch.prefix + ' - ') : '') + note.title;
|
||||||
|
|
||||||
const preparedTitle = prepareText(title);
|
const preparedTitle = prepareText(title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user