fix(server/notes): images not saved on duplication (fixes #7471)

This commit is contained in:
Elian Doran 2025-11-08 11:27:18 +02:00
parent 0e95610d4e
commit 53805e9c49
No known key found for this signature in database

View File

@ -239,8 +239,6 @@ function createNewNote(params: NoteParams): {
}
}
asyncPostProcessContent(note, params.content);
if (params.templateNoteId) {
const templateNote = becca.getNote(params.templateNoteId);
if (!templateNote) {
@ -1037,6 +1035,8 @@ function duplicateSubtreeInner(origNote: BNote, origBranch: BBranch | null | und
}
}
asyncPostProcessContent(newNote, content);
return newNote;
}