diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-12-02 19:35:41 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-02 19:35:41 +0900 |
| commit | a0d9def98aab3d5cd22d0ade061e36619597e2a3 (patch) | |
| tree | 9873a62d2d73dde73144d4e677fc6e26d48d9769 /src/remote/activitypub/models | |
| parent | Fix #3445 (#3471) (diff) | |
| download | sharkey-a0d9def98aab3d5cd22d0ade061e36619597e2a3.tar.gz sharkey-a0d9def98aab3d5cd22d0ade061e36619597e2a3.tar.bz2 sharkey-a0d9def98aab3d5cd22d0ade061e36619597e2a3.zip | |
Simplify expressions (#3473)
Diffstat (limited to 'src/remote/activitypub/models')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 74fcdc10a2..2bd0eaf250 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -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: { |