1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 07:11:47 +09:00
This commit is contained in:
MeiMei 2019-10-16 04:03:51 +09:00 committed by syuilo
parent 5c44c75c23
commit a103ae6755

View File

@ -150,7 +150,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
createdAt: new Date(),
lastFetchedAt: new Date(),
name: person.name,
isLocked: person.manuallyApprovesFollowers,
isLocked: !!person.manuallyApprovesFollowers,
username: person.preferredUsername,
usernameLower: person.preferredUsername.toLowerCase(),
host,
@ -319,7 +319,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
tags,
isBot: object.type == 'Service',
isCat: (person as any).isCat === true,
isLocked: person.manuallyApprovesFollowers,
isLocked: !!person.manuallyApprovesFollowers,
} as Partial<User>;
if (avatar) {