fix ap person to db model
fixed entries of movedToUri and added entries of alsoKnownAs
This commit is contained in:
parent
170957ef05
commit
2051bec543
@ -172,7 +172,8 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
|
|||||||
lastFetchedAt: new Date(),
|
lastFetchedAt: new Date(),
|
||||||
name: truncate(person.name, nameLength),
|
name: truncate(person.name, nameLength),
|
||||||
isLocked: !!person.manuallyApprovesFollowers,
|
isLocked: !!person.manuallyApprovesFollowers,
|
||||||
movedToUri: null,
|
movedToUri: person.movedToUri,
|
||||||
|
alsoKnownAs: person.alsoKnownAs,
|
||||||
isExplorable: !!person.discoverable,
|
isExplorable: !!person.discoverable,
|
||||||
username: person.preferredUsername,
|
username: person.preferredUsername,
|
||||||
usernameLower: person.preferredUsername!.toLowerCase(),
|
usernameLower: person.preferredUsername!.toLowerCase(),
|
||||||
@ -345,6 +346,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
|
|||||||
isCat: (person as any).isCat === true,
|
isCat: (person as any).isCat === true,
|
||||||
isLocked: !!person.manuallyApprovesFollowers,
|
isLocked: !!person.manuallyApprovesFollowers,
|
||||||
movedToUri: person.movedToUri,
|
movedToUri: person.movedToUri,
|
||||||
|
alsoKnownAs: person.alsoKnownAs,
|
||||||
isExplorable: !!person.discoverable,
|
isExplorable: !!person.discoverable,
|
||||||
} as Partial<User>;
|
} as Partial<User>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user