From 243527b2c85d8e6b0c64c01bcc48b768752891a2 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 23:56:07 +0200 Subject: [PATCH] fix: createdAt --- packages/megalodon/src/entities/account.ts | 1 + packages/megalodon/src/misskey/api_client.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/megalodon/src/entities/account.ts b/packages/megalodon/src/entities/account.ts index 89c0f17c4..1c38863c6 100644 --- a/packages/megalodon/src/entities/account.ts +++ b/packages/megalodon/src/entities/account.ts @@ -15,6 +15,7 @@ namespace Entity { suspended: boolean | null limited: boolean | null created_at: string + createdAt: string | null followers_count: number following_count: number statuses_count: number diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 880072438..e1e2fd525 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -88,6 +88,7 @@ namespace MisskeyAPI { suspended: null, limited: null, created_at: '', + createdAt: new Date().toUTCString(), followers_count: 0, following_count: 0, statuses_count: 0, @@ -124,6 +125,7 @@ namespace MisskeyAPI { suspended: null, limited: null, created_at: u.createdAt ? u.createdAt : new Date().toUTCString(), + createdAt: u.createdAt ? u.createdAt : new Date().toUTCString(), followers_count: u.followersCount, following_count: u.followingCount, statuses_count: u.notesCount,