Support tag property on objects
This commit is contained in:
@@ -112,6 +112,7 @@ type Object struct {
|
|||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
ContentMap map[string]string `json:"contentMap,omitempty"`
|
ContentMap map[string]string `json:"contentMap,omitempty"`
|
||||||
|
Tag []Tag `json:"tag"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewNoteObject creates a basic Note object that includes the public
|
// NewNoteObject creates a basic Note object that includes the public
|
||||||
|
|||||||
@@ -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"
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user