fix?: speakAsCat not being federated

This commit is contained in:
naskya 2023-09-13 10:06:02 +09:00
parent a18e0daf4b
commit b4bb455c09
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139
2 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,7 @@ export async function createPerson(
tags, tags,
isBot, isBot,
isCat: (person as any).isCat === true, isCat: (person as any).isCat === true,
speakAsCat: person.speakAsCat,
isIndexable: person.indexable, isIndexable: person.indexable,
}), }),
)) as IRemoteUser; )) as IRemoteUser;

View File

@ -81,6 +81,7 @@ export async function renderPerson(user: ILocalUser) {
discoverable: !!user.isExplorable, discoverable: !!user.isExplorable,
publicKey: renderKey(user, keypair, "#main-key"), publicKey: renderKey(user, keypair, "#main-key"),
isCat: user.isCat, isCat: user.isCat,
speakAsCat: user.speakAsCat,
indexable: user.isIndexable, indexable: user.isIndexable,
attachment: attachment.length ? attachment : undefined, attachment: attachment.length ? attachment : undefined,
} as any; } as any;