Merge remote-tracking branch 'origin/stable'

# Conflicts:
#	db/demo.zip
#	src/services/notes.js
#	src/services/request.js
This commit is contained in:
zadam
2020-08-10 23:45:17 +02:00
15 changed files with 210 additions and 172 deletions

View File

@@ -17,8 +17,9 @@ function getNote(req) {
if (note.isStringNote()) {
note.content = note.getContent();
if (note.type === 'file') {
note.content = note.content.substr(0, 10000);
if (note.type === 'file' && note.content.length > 10000) {
note.content = note.content.substr(0, 10000)
+ `\r\n\r\n... and ${note.content.length - 10000} more characters.`;
}
}