From 1d165763fae1f4f6dc22f78c321b47d51bfec76b Mon Sep 17 00:00:00 2001 From: utam0k Date: Wed, 25 Oct 2017 21:19:38 +0900 Subject: [PATCH] Add Emojis to Status --- mastodon.go | 7 +++++++ status.go | 1 + 2 files changed, 8 insertions(+) diff --git a/mastodon.go b/mastodon.go index 118cdcd..1ca8d6e 100644 --- a/mastodon.go +++ b/mastodon.go @@ -205,6 +205,13 @@ type Attachment struct { TextURL string `json:"text_url"` } +// Emoji hold information for CustomEmoji. +type Emoji struct { + ShortCode string `json:"shortcode"` + URL string `json:"url"` + StaticURL string `json:"static_url"` +} + // Results hold information for search result. type Results struct { Accounts []*Account `json:"accounts"` diff --git a/status.go b/status.go index 1bfb0cd..55183d6 100644 --- a/status.go +++ b/status.go @@ -20,6 +20,7 @@ type Status struct { Application Application `json:"application"` Account Account `json:"account"` MediaAttachments []Attachment `json:"media_attachments"` + Emojis []Emoji `json:"emojis"` Mentions []Mention `json:"mentions"` Tags []Tag `json:"tags"` URI string `json:"uri"`