From 2356566e636f56d30c71adaecc20e9a164e4aabc Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Wed, 4 Oct 2023 04:41:42 +0200 Subject: [PATCH] upd: add extra check for isCat to note nyaification --- packages/backend/src/core/entities/NoteEntityService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 7ba7bce41d..22da6fadd4 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -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) : []; function nyaizeNode(node: mfm.MfmNode) { if (node.type === 'quote') return;