mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 22:43:03 +00:00
null-ify text after trimming
this comes from upstream, it's already present in the "import" section, I think it was missed in a merge
This commit is contained in:
parent
83e9057b27
commit
b0fcc11d9e
1 changed files with 3 additions and 0 deletions
|
@ -328,6 +328,9 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||
data.text = data.text.slice(0, DB_MAX_NOTE_TEXT_LENGTH);
|
||||
}
|
||||
data.text = data.text.trim();
|
||||
if (data.text === '') {
|
||||
data.text = null;
|
||||
}
|
||||
} else {
|
||||
data.text = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue