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
|
@ -15,11 +15,11 @@ import (
|
|||
|
||||
// SimpleJSON is a struct for output JSON for data to be simple used
|
||||
type SimpleJSON struct {
|
||||
ID int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Acct string `json:"acct"`
|
||||
Avatar string `json:"avatar"`
|
||||
Content string `json:"content"`
|
||||
ID mastodon.ID `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Acct string `json:"acct"`
|
||||
Avatar string `json:"avatar"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
func checkFlag(f ...bool) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue