Fix type of IDs.
In Mastodon 2.0 API specification, IDs are typed as string.
This commit is contained in:
parent
98d1ab17f1
commit
3274f13917
5 changed files with 82 additions and 82 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
// Status is struct to hold status.
|
||||
type Status struct {
|
||||
ID int64 `json:"id"`
|
||||
ID ID `json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
InReplyToID interface{} `json:"in_reply_to_id"`
|
||||
InReplyToAccountID interface{} `json:"in_reply_to_account_id"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue