diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-03-20 00:54:07 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-03-20 00:54:07 +0100 |
| commit | 1d947b771995399b677c040136ef2cf88b33d4f2 (patch) | |
| tree | 3cdd673f6c27c9a5a481627895d1fee932b85580 /backend/notes/note.go | |
| parent | 59545c874d8635c39ccdbecf84f953686dd5c03c (diff) | |
| download | llostre-1d947b771995399b677c040136ef2cf88b33d4f2.tar.xz llostre-1d947b771995399b677c040136ef2cf88b33d4f2.zip | |
readded auth that I removed in my hubris + check for no-unauthorized labels
Diffstat (limited to 'backend/notes/note.go')
| -rw-r--r-- | backend/notes/note.go | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/backend/notes/note.go b/backend/notes/note.go index 7c8de36..3b32aa1 100644 --- a/backend/notes/note.go +++ b/backend/notes/note.go @@ -5,15 +5,17 @@ import ( ) type Note struct { - URI string `json:"uri"` - AuthorDID string `json:"authorDid"` - AuthorHandle string `json:"authorHandle"` - AuthorName string `json:"authorName"` - AvatarURL string `json:"avatarURL"` - Text string `json:"text"` - CreatedAt time.Time `json:"createdAt"` - ReplyTo *string `json:"replyTo,omitempty"` - Facets []Facet `json:"facets,omitempty"` + URI string `json:"uri"` + AuthorDID string `json:"authorDid"` + AuthorHandle string `json:"authorHandle"` + AuthorName string `json:"authorName"` + AuthorNoUnauth bool `json:"authorNoUnauth"` // author has !no-unauthenticated label + AvatarURL string `json:"avatarURL"` + Text string `json:"text"` + CreatedAt time.Time `json:"createdAt"` + ReplyTo *string `json:"replyTo,omitempty"` + Facets []Facet `json:"facets,omitempty"` + Parents []string `json:"parents,omitempty"` } type Facet struct { |
