From 035d6004061f413a702d2bac25f5ee7def5ca5c6 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 04:30:15 +0200 Subject: [PATCH] chore: remove createdAt in favour of created_at --- packages/megalodon/src/entities/account.ts | 1 - packages/megalodon/src/entities/status.ts | 1 - packages/megalodon/src/misskey/api_client.ts | 3 --- 3 files changed, 5 deletions(-) diff --git a/packages/megalodon/src/entities/account.ts b/packages/megalodon/src/entities/account.ts index 96d10909be..89c0f17c4b 100644 --- a/packages/megalodon/src/entities/account.ts +++ b/packages/megalodon/src/entities/account.ts @@ -15,7 +15,6 @@ 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/entities/status.ts b/packages/megalodon/src/entities/status.ts index 073b58932c..295703e57c 100644 --- a/packages/megalodon/src/entities/status.ts +++ b/packages/megalodon/src/entities/status.ts @@ -19,7 +19,6 @@ namespace Entity { content: string plain_content: string | null created_at: string - createdAt?: string emojis: Emoji[] replies_count: number reblogs_count: number diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index f538e13272..5b7d49f60a 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -88,7 +88,6 @@ namespace MisskeyAPI { suspended: null, limited: null, created_at: u.createdAt ? u.createdAt : '', - createdAt: u.createdAt, followers_count: 0, following_count: 0, statuses_count: 0, @@ -125,7 +124,6 @@ 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, @@ -271,7 +269,6 @@ namespace MisskeyAPI { : '', plain_content: n.text ? n.text : null, created_at: n.createdAt, - createdAt: n.createdAt, emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)), replies_count: n.repliesCount, reblogs_count: n.renoteCount,