diff --git a/activitystreams/activity.go b/activitystreams/activity.go index aab4c9f..13ffcee 100644 --- a/activitystreams/activity.go +++ b/activitystreams/activity.go @@ -112,6 +112,7 @@ type Object struct { Name string `json:"name,omitempty"` Content string `json:"content"` ContentMap map[string]string `json:"contentMap,omitempty"` + Tag []Tag `json:"tag"` } // NewNoteObject creates a basic Note object that includes the public diff --git a/activitystreams/tag.go b/activitystreams/tag.go new file mode 100644 index 0000000..63fe4c4 --- /dev/null +++ b/activitystreams/tag.go @@ -0,0 +1,14 @@ +package activitystreams + +type Tag struct { + Type TagType `json:"type"` + HRef string `json:"href"` + Name string `json:"name"` +} + +type TagType string + +const ( + TagHashtag TagType = "Hashtag" + TagMention = "Mention" +)