mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
Merge remote-tracking branch 'origin/stable'
# Conflicts: # db/demo.zip # src/services/notes.js # src/services/request.js
This commit is contained in:
@@ -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.`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user