diff options
author | FChannel <> | 2021-07-28 15:31:37 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-28 15:31:37 -0700 |
commit | 98d72c9b94b5dda9a987dfe41552f00512d43574 (patch) | |
tree | ef75468766c6c5e2d4392cfc567eb29cb90d0c9d /activityPubStruct.go | |
parent | ea12d0f741455c542accf24a003a62ab85bfbfa3 (diff) | |
parent | 87fc54c9d41bdbe7eaa8769386776a3723580b34 (diff) |
v0.0.13-release
Diffstat (limited to 'activityPubStruct.go')
-rw-r--r-- | activityPubStruct.go | 11 |
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"` |