fix: federate speakAsCat

This commit is contained in:
naskya 2023-09-21 16:58:24 +09:00
parent 6661550a87
commit 33466420ba
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 5 additions and 1 deletions

View file

@ -301,7 +301,7 @@ export async function createPerson(
tags,
isBot,
isCat: (person as any).isCat === true,
speakAsCat: person.speakAsCat,
speakAsCat: (person as any).speakAsCat === true,
isIndexable: person.indexable,
}),
)) as IRemoteUser;
@ -545,6 +545,7 @@ export async function updatePerson(
tags,
isBot: getApType(object) !== "Person",
isCat: (person as any).isCat === true,
speakAsCat: (person as any).speakAsCat === true,
isIndexable: person.indexable,
isLocked: !!person.manuallyApprovesFollowers,
movedToUri: person.movedTo || null,

View file

@ -35,6 +35,9 @@ export const renderActivity = (x: any): IActivity | null => {
schema: "http://schema.org#",
PropertyValue: "schema:PropertyValue",
value: "schema:value",
// Firefish
firefish: "https://joinfirefish.org/ns#",
speakAsCat: "firefish:speakAsCat",
// Misskey
misskey: "https://misskey-hub.net/ns#",
_misskey_content: "misskey:_misskey_content",