Support attachments on activitystreams.Object
This commit is contained in:
@@ -117,6 +117,7 @@ type Object struct {
|
|||||||
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"`
|
Tag []Tag `json:"tag"`
|
||||||
|
Attachment []Attachment `json:"attachment,omitempty"`
|
||||||
|
|
||||||
// Extensions
|
// Extensions
|
||||||
// NOTE: add extensions here
|
// NOTE: add extensions here
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package activitystreams
|
||||||
|
|
||||||
|
type Attachment struct {
|
||||||
|
Type AttachmentType `json:"type"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
MediaType string `json:"mediaType"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type AttachmentType string
|
||||||
|
|
||||||
|
const AttachImage AttachmentType = "Image"
|
||||||
Reference in New Issue
Block a user