aboutsummaryrefslogtreecommitdiff
path: root/activityPubStruct.go
diff options
context:
space:
mode:
authorFChannel <>2021-07-28 15:31:37 -0700
committerFChannel <>2021-07-28 15:31:37 -0700
commit98d72c9b94b5dda9a987dfe41552f00512d43574 (patch)
treeef75468766c6c5e2d4392cfc567eb29cb90d0c9d /activityPubStruct.go
parentea12d0f741455c542accf24a003a62ab85bfbfa3 (diff)
parent87fc54c9d41bdbe7eaa8769386776a3723580b34 (diff)
v0.0.13-release
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r--activityPubStruct.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/activityPubStruct.go b/activityPubStruct.go
index e790573..62fabe1 100644
--- a/activityPubStruct.go
+++ b/activityPubStruct.go
@@ -1,6 +1,9 @@
package main
-import "encoding/json"
+import (
+ "encoding/json"
+ "html/template"
+)
type AtContextRaw struct {
Context json.RawMessage `json:"@context,omitempty"`
@@ -111,7 +114,8 @@ type ObjectBase struct {
TripCode string `json:"tripcode,omitempty"`
Actor string `json:"actor,omitempty"`
Audience string `json:"audience,omitempty"`
- Content string `json:"content,omitempty"`
+ ContentHTML template.HTML `json:"contenthtml,omitempty"`
+ Content string `json:"content,omitempty"`
EndTime string `json:"endTime,omitempty"`
Generator string `json:"generator,omitempty"`
Icon string `json:"icon,omitempty"`
@@ -156,7 +160,8 @@ type NestedObjectBase struct {
TripCode string `json:"tripcode,omitempty"`
Actor string `json:"actor,omitempty"`
Audience string `json:"audience,omitempty"`
- Content string `json:"content,omitempty"`
+ ContentHTML template.HTML `json:"contenthtml,omitempty"`
+ Content string `json:"content,omitempty"`
EndTime string `json:"endTime,omitempty"`
Generator string `json:"generator,omitempty"`
Icon string `json:"icon,omitempty"`