diff options
Diffstat (limited to 'backend/notes/note.go')
| -rw-r--r-- | backend/notes/note.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/notes/note.go b/backend/notes/note.go index 72c885d..15f6f67 100644 --- a/backend/notes/note.go +++ b/backend/notes/note.go @@ -4,6 +4,13 @@ import ( "time" ) +type Media struct { + URL string `json:"url"` + Alt string `json:"alt"` + Width int `json:"width,omitempty"` + Height int `json:"height,omitempty"` +} + type Note struct { URI string `json:"uri"` AuthorDID string `json:"authorDID"` @@ -16,6 +23,7 @@ type Note struct { ReplyTo *string `json:"replyTo,omitempty"` Facets []Facet `json:"facets,omitempty"` Parents []Note `json:"parents,omitempty"` + Media []Media `json:"media,omitempty"` } type Facet struct { |
