fix: text can be null

This commit is contained in:
naskya 2024-06-30 20:51:19 +09:00
parent 1fab455b7f
commit 75fe91fad4
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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;