Set movedToUri & alsoKnownAs null when undefined

This commit is contained in:
Kaity A 2023-03-04 08:24:22 +00:00
parent edaf7dbb61
commit 5433603440
1 changed files with 2 additions and 2 deletions

View File

@ -413,8 +413,8 @@ export async function updatePerson(
isBot: getApType(object) === "Service", isBot: getApType(object) === "Service",
isCat: (person as any).isCat === true, isCat: (person as any).isCat === true,
isLocked: !!person.manuallyApprovesFollowers, isLocked: !!person.manuallyApprovesFollowers,
movedToUri: person.movedTo, movedToUri: person.movedTo || null,
alsoKnownAs: person.alsoKnownAs, alsoKnownAs: person.alsoKnownAs || null,
isExplorable: !!person.discoverable, isExplorable: !!person.discoverable,
} as Partial<User>; } as Partial<User>;