store images in notes, basic structure

This commit is contained in:
azivner
2018-11-08 10:11:00 +01:00
parent 5f427e37fe
commit d0d2a7fe47
24 changed files with 11589 additions and 141 deletions

View File

@@ -12,8 +12,8 @@ async function getNote(req) {
return [404, "Note " + noteId + " has not been found."];
}
if (note.type === 'file') {
// no need to transfer (potentially large) file payload for this request
if (note.type === 'file' || note.type === 'image') {
// no need to transfer (potentially large) file/image payload for this request
note.content = null;
}