mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fixes, allowing conversion of note into an attachment
This commit is contained in:
@@ -370,6 +370,8 @@ function checkImageAttachments(note, content) {
|
||||
newAttachment.setContent(unknownAttachment.getContent(), { forceSave: true });
|
||||
|
||||
content = content.replace(`api/attachments/${unknownAttachment.attachmentId}/image`, `api/attachments/${newAttachment.attachmentId}/image`);
|
||||
|
||||
log.info(`Copied attachment '${unknownAttachment.attachmentId}' to new '${newAttachment.attachmentId}'`);
|
||||
}
|
||||
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user