From 16b81fb016acc28096cd1151f7d428a32fb9919c Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 03:59:18 +0200 Subject: [PATCH] upd: add createdAt to user --- 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..96d10909b 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 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 f7ecb3bd5..926c0da2a 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: '', followers_count: 0, following_count: 0, statuses_count: 0, @@ -124,6 +125,7 @@ namespace MisskeyAPI { suspended: null, limited: null, created_at: u.createdAt, + createdAt: u.createdAt, followers_count: u.followersCount, following_count: u.followingCount, statuses_count: u.notesCount,