mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 12:33:09 +02:00
merge: preserve old text when editing a note (#128)
This commit is contained in:
commit
469b464f69
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue