aboutsummaryrefslogtreecommitdiff
path: root/backend/notes/note.go
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-04-11 07:30:49 +0200
committerGuillermo Serrahima <dev@vylion.com>2026-04-11 07:30:49 +0200
commitf6d60077b7cfc0d589fa7961e2bb59aea9f993a3 (patch)
tree1e994b619b33ea88ef3f62cb97aba4c2cf07ff61 /backend/notes/note.go
parentf8de6c378945495f304efebad86be05d5623290a (diff)
downloadllostre-f6d60077b7cfc0d589fa7961e2bb59aea9f993a3.tar.xz
llostre-f6d60077b7cfc0d589fa7961e2bb59aea9f993a3.zip
media rendering (wip)
Diffstat (limited to 'backend/notes/note.go')
-rw-r--r--backend/notes/note.go8
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 {