fix: createdAt
This commit is contained in:
parent
8f219557d4
commit
243527b2c8
2 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ namespace Entity {
|
||||||
suspended: boolean | null
|
suspended: boolean | null
|
||||||
limited: boolean | null
|
limited: boolean | null
|
||||||
created_at: string
|
created_at: string
|
||||||
|
createdAt: string | null
|
||||||
followers_count: number
|
followers_count: number
|
||||||
following_count: number
|
following_count: number
|
||||||
statuses_count: number
|
statuses_count: number
|
||||||
|
|
|
@ -88,6 +88,7 @@ namespace MisskeyAPI {
|
||||||
suspended: null,
|
suspended: null,
|
||||||
limited: null,
|
limited: null,
|
||||||
created_at: '',
|
created_at: '',
|
||||||
|
createdAt: new Date().toUTCString(),
|
||||||
followers_count: 0,
|
followers_count: 0,
|
||||||
following_count: 0,
|
following_count: 0,
|
||||||
statuses_count: 0,
|
statuses_count: 0,
|
||||||
|
@ -124,6 +125,7 @@ namespace MisskeyAPI {
|
||||||
suspended: null,
|
suspended: null,
|
||||||
limited: null,
|
limited: null,
|
||||||
created_at: u.createdAt ? u.createdAt : new Date().toUTCString(),
|
created_at: u.createdAt ? u.createdAt : new Date().toUTCString(),
|
||||||
|
createdAt: u.createdAt ? u.createdAt : new Date().toUTCString(),
|
||||||
followers_count: u.followersCount,
|
followers_count: u.followersCount,
|
||||||
following_count: u.followingCount,
|
following_count: u.followingCount,
|
||||||
statuses_count: u.notesCount,
|
statuses_count: u.notesCount,
|
||||||
|
|
Loading…
Reference in a new issue