fix: text can be null
This commit is contained in:
parent
1fab455b7f
commit
75fe91fad4
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ export class NoteConverter {
|
|||
)
|
||||
.then(async (text) => {
|
||||
const user = await Users.findOneBy({ id: note.userId });
|
||||
if (user?.isCat && user?.speakAsCat) {
|
||||
if (user?.isCat && user?.speakAsCat && text != null) {
|
||||
return this.applyNyaification(text, note.lang);
|
||||
}
|
||||
return text;
|
||||
|
|
Loading…
Reference in a new issue