mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 05:13:09 +02:00
chore: remove createdAt in favour of created_at
This commit is contained in:
parent
6ed28c76fb
commit
035d600406
3 changed files with 0 additions and 5 deletions
|
@ -15,7 +15,6 @@ namespace Entity {
|
||||||
suspended: boolean | null
|
suspended: boolean | null
|
||||||
limited: boolean | null
|
limited: boolean | null
|
||||||
created_at: string
|
created_at: string
|
||||||
createdAt?: string
|
|
||||||
followers_count: number
|
followers_count: number
|
||||||
following_count: number
|
following_count: number
|
||||||
statuses_count: number
|
statuses_count: number
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace Entity {
|
||||||
content: string
|
content: string
|
||||||
plain_content: string | null
|
plain_content: string | null
|
||||||
created_at: string
|
created_at: string
|
||||||
createdAt?: string
|
|
||||||
emojis: Emoji[]
|
emojis: Emoji[]
|
||||||
replies_count: number
|
replies_count: number
|
||||||
reblogs_count: number
|
reblogs_count: number
|
||||||
|
|
|
@ -88,7 +88,6 @@ namespace MisskeyAPI {
|
||||||
suspended: null,
|
suspended: null,
|
||||||
limited: null,
|
limited: null,
|
||||||
created_at: u.createdAt ? u.createdAt : '',
|
created_at: u.createdAt ? u.createdAt : '',
|
||||||
createdAt: u.createdAt,
|
|
||||||
followers_count: 0,
|
followers_count: 0,
|
||||||
following_count: 0,
|
following_count: 0,
|
||||||
statuses_count: 0,
|
statuses_count: 0,
|
||||||
|
@ -125,7 +124,6 @@ namespace MisskeyAPI {
|
||||||
suspended: null,
|
suspended: null,
|
||||||
limited: null,
|
limited: null,
|
||||||
created_at: u.createdAt,
|
created_at: u.createdAt,
|
||||||
createdAt: u.createdAt,
|
|
||||||
followers_count: u.followersCount,
|
followers_count: u.followersCount,
|
||||||
following_count: u.followingCount,
|
following_count: u.followingCount,
|
||||||
statuses_count: u.notesCount,
|
statuses_count: u.notesCount,
|
||||||
|
@ -271,7 +269,6 @@ namespace MisskeyAPI {
|
||||||
: '',
|
: '',
|
||||||
plain_content: n.text ? n.text : null,
|
plain_content: n.text ? n.text : null,
|
||||||
created_at: n.createdAt,
|
created_at: n.createdAt,
|
||||||
createdAt: n.createdAt,
|
|
||||||
emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)),
|
emojis: mapEmojis(n.emojis).concat(mapReactionEmojis(n.reactionEmojis)),
|
||||||
replies_count: n.repliesCount,
|
replies_count: n.repliesCount,
|
||||||
reblogs_count: n.renoteCount,
|
reblogs_count: n.renoteCount,
|
||||||
|
|
Loading…
Reference in a new issue