From 6c1a0ec62c3dc50ab78309319608b893a6203392 Mon Sep 17 00:00:00 2001 From: Mikael Berthe Date: Mon, 1 May 2017 19:18:10 +0200 Subject: [PATCH] Fix case mistakes in JSON tags --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 3c44997..7b825bf 100644 --- a/types.go +++ b/types.go @@ -51,7 +51,7 @@ type Application struct { // 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 @@ type Relationship struct { // Report represents a Mastodon report entity type Report struct { - ID int64 `json:"iD"` + ID int64 `json:"id"` ActionTaken string `json:"action_taken"` }