mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
added #shareRaw label
This commit is contained in:
@@ -23,6 +23,13 @@ function getSharedSubTreeRoot(note) {
|
||||
function register(router) {
|
||||
function renderNote(note, res) {
|
||||
if (note) {
|
||||
if (note.hasLabel('shareRaw')) {
|
||||
res.setHeader('Content-Type', note.mime);
|
||||
|
||||
res.send(note.getContent());
|
||||
return;
|
||||
}
|
||||
|
||||
const {header, content, isEmpty} = contentRenderer.getContent(note);
|
||||
|
||||
const subRoot = getSharedSubTreeRoot(note);
|
||||
|
||||
Reference in New Issue
Block a user