upd: add extra check for isCat to note nyaification

This commit is contained in:
Mar0xy 2023-10-04 04:41:42 +02:00
parent b216af65c5
commit 2356566e63
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ export class NoteEntityService implements OnModuleInit {
} : {}), } : {}),
}); });
if (packed.user.speakAsCat && packed.text) { if (packed.user.isCat && packed.user.speakAsCat && packed.text) {
const tokens = packed.text ? mfm.parse(packed.text) : []; const tokens = packed.text ? mfm.parse(packed.text) : [];
function nyaizeNode(node: mfm.MfmNode) { function nyaizeNode(node: mfm.MfmNode) {
if (node.type === 'quote') return; if (node.type === 'quote') return;