aboutsummaryrefslogtreecommitdiff
path: root/backend/notes/note.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/notes/note.go')
-rw-r--r--backend/notes/note.go20
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 {