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,
isBot,
isCat: (person as any).isCat === true,
speakAsCat: person.speakAsCat,
isIndexable: person.indexable,
}),
)) as IRemoteUser;

View File

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