update person model

This commit is contained in:
cutestnekoaqua 2022-12-06 23:49:21 +01:00
parent 2051bec543
commit ef707b01bc
2 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
lastFetchedAt: new Date(),
name: truncate(person.name, nameLength),
isLocked: !!person.manuallyApprovesFollowers,
movedToUri: person.movedToUri,
movedToUri: person.movedTo,
alsoKnownAs: person.alsoKnownAs,
isExplorable: !!person.discoverable,
username: person.preferredUsername,
@ -345,7 +345,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
isBot: getApType(object) === 'Service',
isCat: (person as any).isCat === true,
isLocked: !!person.manuallyApprovesFollowers,
movedToUri: person.movedToUri,
movedToUri: person.movedTo,
alsoKnownAs: person.alsoKnownAs,
isExplorable: !!person.discoverable,
} as Partial<User>;

View File

@ -156,7 +156,7 @@ export interface IActor extends IObject {
name?: string;
preferredUsername?: string;
manuallyApprovesFollowers?: boolean;
movedToUri?: string;
movedTo?: string;
alsoKnownAs?: string[];
discoverable?: boolean;
inbox: string;