Merge branch 'stable'

# Conflicts:
#	package.json
#	src/services/build.js
#	src/services/migration.js
This commit is contained in:
zadam
2024-01-27 22:52:47 +01:00
7 changed files with 29 additions and 4 deletions

View File

@@ -895,6 +895,11 @@ function scanForLinks(note, content) {
* Things which have to be executed after updating content, but asynchronously (separate transaction)
*/
async function asyncPostProcessContent(note, content) {
if (cls.isMigrationRunning()) {
// this is rarely needed for migrations, but can cause trouble by e.g. triggering downloads
return;
}
if (note.hasStringContent() && !utils.isString(content)) {
content = content.toString();
}