tangled
alpha
login
or
join now
diffdown.com
/
diffdown-app
0
fork
atom
Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol
diffdown.com
0
fork
atom
overview
issues
10
pulls
pipelines
model: add CommentRecord type for separate collection
diffdown.com
2 weeks ago
bc4b1e20
5b862013
+18
1 changed file
expand all
collapse all
unified
split
internal
model
models.go
+18
internal/model/models.go
reviewed
···
60
60
CreatedAt string `json:"createdAt"` // RFC3339
61
61
}
62
62
63
63
+
type CommentRecord struct {
64
64
+
ThreadID string `json:"threadId"` // groups replies into threads
65
65
+
DocRKey string `json:"docRKey"` // document rkey this comment belongs to
66
66
+
DocOwnerDID string `json:"docOwnerDid"` // owner DID for quick filtering
67
67
+
QuotedText string `json:"quotedText"` // text the comment was anchored to
68
68
+
Text string `json:"text"` // comment content
69
69
+
Author string `json:"author"` // DID
70
70
+
AuthorHandle string `json:"authorHandle"` // resolved handle
71
71
+
CreatedAt string `json:"createdAt"` // RFC3339
72
72
+
ReplyTo string `json:"replyTo,omitempty"` // parent comment URI (null for root)
73
73
+
Resolved bool `json:"resolved"` // thread resolution state
74
74
+
}
75
75
+
63
76
type Invite struct {
64
77
ID string `json:"id"`
65
78
DocumentRKey string `json:"document_rkey"`
···
77
90
}
78
91
return ""
79
92
}
93
93
+
94
94
+
const (
95
95
+
CollectionDocument = "com.diffdown.document"
96
96
+
CollectionComment = "app.diffdown.comment"
97
97
+
)