fix: non-Firefish cats not being nyanified

This commit is contained in:
naskya 2023-09-23 05:08:20 +00:00
parent b61e3050a2
commit 17d94c5ff7

View File

@ -302,7 +302,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;
@ -549,7 +552,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,