53 Website string `json:"website"` |
53 Website string `json:"website"` |
54 } |
54 } |
55 |
55 |
56 // Attachment represents a Mastodon attachement entity |
56 // Attachment represents a Mastodon attachement entity |
57 type Attachment struct { |
57 type Attachment struct { |
58 ID int64 `json:"id"` |
58 ID int64 `json:"id"` |
59 Type string `json:"type"` |
59 Type string `json:"type"` |
60 URL string `json:"url"` |
60 URL string `json:"url"` |
61 RemoteURL *string `json:"remote_url"` |
61 RemoteURL *string `json:"remote_url"` |
62 PreviewURL string `json:"preview_url"` |
62 PreviewURL string `json:"preview_url"` |
63 TextURL *string `json:"text_url"` |
63 TextURL *string `json:"text_url"` |
64 Meta *interface{} `json:"meta"` |
64 Meta *struct { |
|
65 Original struct { |
|
66 Size string `json:"size"` |
|
67 Aspect float64 `json:"aspect"` |
|
68 Width int `json:"width"` |
|
69 Height int `json:"height"` |
|
70 } `json:"original"` |
|
71 Small struct { |
|
72 Size string `json:"size"` |
|
73 Aspect float64 `json:"aspect"` |
|
74 Width int `json:"width"` |
|
75 Height int `json:"height"` |
|
76 } `json:"small"` |
|
77 } `json:"meta"` |
65 } |
78 } |
66 |
79 |
67 // Card represents a Mastodon card entity |
80 // Card represents a Mastodon card entity |
68 type Card struct { |
81 type Card struct { |
69 URL string `json:"url"` |
82 URL string `json:"url"` |