From 1d947b771995399b677c040136ef2cf88b33d4f2 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Fri, 20 Mar 2026 00:54:07 +0100 Subject: readded auth that I removed in my hubris + check for no-unauthorized labels --- backend/notes/note.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'backend/notes/note.go') 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 { -- cgit v1.2.3