# HG changeset patch # User Mikael Berthe # Date 1493659090 -7200 # Node ID 1f8ea3aa20e7ca78a521b7136d72c529e0be5c73 # Parent 1a311b0316d25f0e9bbced4fa50718c7ca1528eb Fix case mistakes in JSON tags diff -r 1a311b0316d2 -r 1f8ea3aa20e7 types.go --- a/types.go Mon May 01 13:55:10 2017 +0000 +++ b/types.go Mon May 01 19:18:10 2017 +0200 @@ -51,7 +51,7 @@ // Attachment represents a Mastodon attachement entity type Attachment struct { - ID int64 `json:"iD"` + ID int64 `json:"id"` Type string `json:"type"` URL string `json:"url"` RemoteURL string `json:"remote_url"` @@ -116,7 +116,7 @@ // Report represents a Mastodon report entity type Report struct { - ID int64 `json:"iD"` + ID int64 `json:"id"` ActionTaken string `json:"action_taken"` }