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,