merge: preserve old text when editing a note (#128)

This commit is contained in:
Marie 2023-11-02 22:24:25 +01:00 committed by GitHub
commit 469b464f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,7 @@ export class NoteEditService implements OnApplicationShutdown {
await this.noteEditRepository.insert({
id: this.idService.gen(),
noteId: oldnote.id,
oldText: update.text ? oldnote.text : undefined,
oldText: oldnote.text || undefined,
newText: update.text || undefined,
cw: update.cw || undefined,
fileIds: undefined,