Uncomment the Card type
authorMikael Berthe <mikael@lilotux.net>
Thu, 13 Apr 2017 10:35:42 +0200
changeset 100 e327896577dd
parent 99 6ec2a44a1bd1
child 101 16d7500c19dd
Uncomment the Card type The Image field actually contains a URL string.
types.go
--- a/types.go	Thu Apr 13 09:30:47 2017 +0200
+++ b/types.go	Thu Apr 13 10:35:42 2017 +0200
@@ -54,15 +54,13 @@
 	TextURL    string `json:"text_url"`
 }
 
-/*
 // Card represents a Mastodon card entity
 type Card struct {
-	URL         string       `json:"url"`
-	Title       string       `json:"title"`
-	Description string       `json:"description"`
-	Image       *interface{} `json:"image"`
+	URL         string `json:"url"`
+	Title       string `json:"title"`
+	Description string `json:"description"`
+	Image       string `json:"image"`
 }
-*/
 
 // Context represents a Mastodon context entity
 type Context struct {