From 6bf95fc751916ce7a8d8c70bc7571a19ed60a8fb Mon Sep 17 00:00:00 2001 From: Jessica Paczuski Date: Tue, 29 Jan 2019 11:24:00 +0100 Subject: [PATCH] Rename Size -> AttachmentSize --- mastodon.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mastodon.go b/mastodon.go index 0599445..3919f85 100644 --- a/mastodon.go +++ b/mastodon.go @@ -237,12 +237,12 @@ type Attachment struct { // AttachmentMeta holds information for attachment metadata. type AttachmentMeta struct { - Original Size `json:"original"` - Small Size `json:"small"` + Original AttachmentSize `json:"original"` + Small AttachmentSize `json:"small"` } -// Size holds information for attatchment size. -type Size struct { +// AttachmentSize holds information for attatchment size. +type AttachmentSize struct { Width int64 `json:"width"` Height int64 `json:"height"` Size string `json:"size"`