add: speakAsCat extension

This commit is contained in:
Mar0xy 2023-10-04 04:35:58 +02:00
parent 736c80c39e
commit 89924b587a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
16 changed files with 46 additions and 1 deletions

View file

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