mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 06:16:42 -06:00
Simplify expressions (#3473)
This commit is contained in:
parent
92701e5cec
commit
a0d9def98a
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<IU
|
|||
uri: person.id,
|
||||
url: person.url,
|
||||
isBot: isBot,
|
||||
isCat: (person as any).isCat === true ? true : false
|
||||
isCat: (person as any).isCat === true
|
||||
}) as IRemoteUser;
|
||||
} catch (e) {
|
||||
// duplicate key error
|
||||
|
@ -322,7 +322,7 @@ export async function updatePerson(uri: string, resolver?: Resolver, hint?: obje
|
|||
url: person.url,
|
||||
endpoints: person.endpoints,
|
||||
isBot: object.type == 'Service',
|
||||
isCat: (person as any).isCat === true ? true : false,
|
||||
isCat: (person as any).isCat === true
|
||||
isLocked: person.manuallyApprovesFollowers,
|
||||
createdAt: Date.parse(person.published) || null,
|
||||
publicKey: {
|
||||
|
|
Loading…
Reference in a new issue