aboutsummaryrefslogtreecommitdiff
path: root/activityPubStruct.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-28 08:18:14 -0700
committerFChannel <>2021-06-28 08:18:14 -0700
commit34fa3d38b97ff08130e8709c4820915dfd684b19 (patch)
tree36e0f9cf2d58ab6b915b29bda515ac662dbcae55 /activityPubStruct.go
parente3eba9b6c64b1e8d884a51638deca0078f2f4760 (diff)
parentea9b7878dcbcedce3669eb2df23a14546f7188af (diff)
Merge with master
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r--activityPubStruct.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/activityPubStruct.go b/activityPubStruct.go
index 9fe66d6..06c97e1 100644
--- a/activityPubStruct.go
+++ b/activityPubStruct.go
@@ -74,11 +74,18 @@ type Actor struct {
Followers string `json:"followers,omitempty"`
Name string `json:"name,omitempty"`
PreferredUsername string `json:"preferredUsername,omitempty"`
+ PublicKey PublicKeyPem `json:"publicKey,omitempty"`
Summary string `json:"summary,omitempty"`
AuthRequirement []string `json:"authrequirement,omitempty"`
Restricted bool `json:"restricted"`
}
+type PublicKeyPem struct {
+ Id string `json:"id,omitempty"`
+ Owner string `json:"owner,omitempty"`
+ PublicKeyPem string `json:"publicKeyPem,omitempty"`
+}
+
type Activity struct {
AtContext
Type string `json:"type,omitempty"`
@@ -101,7 +108,8 @@ type ObjectBase struct {
Option []string `json:"option,omitempty"`
Alias string `json:"alias,omitempty"`
AttributedTo string `json:"attributedTo,omitempty"`
- Actor *Actor `json:"actor,omitempty"`
+ TripCode string `json:"tripcode,omitempty"`
+ Actor string `json:"actor,omitempty"`
Audience string `json:"audience,omitempty"`
Content string `json:"content,omitempty"`
EndTime string `json:"endTime,omitempty"`
@@ -129,7 +137,8 @@ type ObjectBase struct {
Bcc string `json:"Bcc,omitempty"`
MediaType string `json:"mediatype,omitempty"`
Duration string `json:"duration,omitempty"`
- Size int64 `json:"size,omitempty"`
+ Size int64 `json:"size,omitempty"`
+ Sensitive bool `json:"sensitive"`
}
type CryptoCur struct {
@@ -144,7 +153,8 @@ type NestedObjectBase struct {
Name string `json:"name,omitempty"`
Alias string `json:"alias,omitempty"`
AttributedTo string `json:"attributedTo,omitempty"`
- Actor *Actor `json:"actor,omitempty"`
+ TripCode string `json:"tripcode,omitempty"`
+ Actor string `json:"actor,omitempty"`
Audience string `json:"audience,omitempty"`
Content string `json:"content,omitempty"`
EndTime string `json:"endTime,omitempty"`