added #shareRaw label

This commit is contained in:
zadam
2022-03-22 21:20:47 +01:00
parent 228564f843
commit 091d6a1cf1
5 changed files with 324 additions and 387 deletions

View File

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