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, tags,
isBot, isBot,
isCat: (person as any).isCat === true, 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, isIndexable: person.indexable,
}), }),
)) as IRemoteUser; )) as IRemoteUser;
@ -549,7 +552,10 @@ export async function updatePerson(
tags, tags,
isBot: getApType(object) !== "Person", isBot: getApType(object) !== "Person",
isCat: (person as any).isCat === true, 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, isIndexable: person.indexable,
isLocked: !!person.manuallyApprovesFollowers, isLocked: !!person.manuallyApprovesFollowers,
movedToUri: person.movedTo || null, movedToUri: person.movedTo || null,