From b4bb455c094ea473ae68a1745e27b5021506304e Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 13 Sep 2023 10:06:02 +0900 Subject: [PATCH] fix?: speakAsCat not being federated --- packages/backend/src/remote/activitypub/models/person.ts | 1 + packages/backend/src/remote/activitypub/renderer/person.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index 564de3661..c02905fab 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -302,6 +302,7 @@ export async function createPerson( tags, isBot, isCat: (person as any).isCat === true, + speakAsCat: person.speakAsCat, isIndexable: person.indexable, }), )) as IRemoteUser; diff --git a/packages/backend/src/remote/activitypub/renderer/person.ts b/packages/backend/src/remote/activitypub/renderer/person.ts index d91c0a911..9f642bb9e 100644 --- a/packages/backend/src/remote/activitypub/renderer/person.ts +++ b/packages/backend/src/remote/activitypub/renderer/person.ts @@ -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;