From f6d60077b7cfc0d589fa7961e2bb59aea9f993a3 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Sat, 11 Apr 2026 07:30:49 +0200 Subject: media rendering (wip) --- backend/notes/note.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'backend/notes/note.go') 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 { -- cgit v1.2.3