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

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) : [];
function nyaizeNode(node: mfm.MfmNode) {
if (node.type === 'quote') return;