1
0
Fork 1
mirror of https://example.com synced 2024-11-22 12:16:40 +09:00

fix: non-Firefish cats not being nyanified

This commit is contained in:
naskya 2023-09-23 13:36:35 +09:00
parent 40f0f8abee
commit 6a46044cf4
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

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