aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-22 18:10:42 +0000
committerr <r@freesoftwareextremist.com>2019-12-22 18:10:42 +0000
commit08cc2a6adeb591c687d68c22bac9bc5b5f9f62b6 (patch)
treefb4a475f9328b2d27f19c8e63ad2b56f7eb9980b /mastodon
parent967a9c954e9709d57e860b8ea5c4e7f495402848 (diff)
downloadbloat-08cc2a6adeb591c687d68c22bac9bc5b5f9f62b6.tar.gz
bloat-08cc2a6adeb591c687d68c22bac9bc5b5f9f62b6.zip
Add emojis page
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/instance.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/mastodon/instance.go b/mastodon/instance.go
index 3217450..1dc2c8e 100644
--- a/mastodon/instance.go
+++ b/mastodon/instance.go
@@ -63,3 +63,13 @@ func (c *Client) GetInstancePeers(ctx context.Context) ([]string, error) {
}
return peers, nil
}
+
+// GetInstanceEmojis return instance emojis.
+func (c *Client) GetInstanceEmojis(ctx context.Context) ([]*Emoji, error) {
+ var emojis []*Emoji
+ err := c.doAPI(ctx, http.MethodGet, "/api/v1/custom_emojis", nil, &emojis, nil)
+ if err != nil {
+ return nil, err
+ }
+ return emojis, nil
+}