mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
add possibility to define a share index, closes #3265
This commit is contained in:
@@ -88,7 +88,7 @@ function register(router) {
|
||||
|
||||
addNoIndexHeader(note, res);
|
||||
|
||||
if (note.hasLabel('shareRaw') || ['image', 'file'].includes(note.type)) {
|
||||
if (note.hasLabel('shareRaw')) {
|
||||
res.setHeader('Content-Type', note.mime)
|
||||
.send(note.getContent());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user