diff options
author | FChannel <> | 2021-07-22 13:50:11 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-22 13:50:11 -0700 |
commit | 3b2c8a4c78ade9e819b61aa055039ae00e517a3e (patch) | |
tree | 1d52c2c44cf89d6aa53b7ff2fd1e034553e2157a /activityPubStruct.go | |
parent | 5592a8c898b45e1e97d91b2c0bb0ed21750a9959 (diff) |
fixed quote bug and moved comment parsing server side without javascript
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"` |