Support attachments on activitystreams.Object

This commit is contained in:
Matt Baer
2021-03-24 15:33:34 -04:00
parent e05f572eb2
commit 48cbbf652a
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -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"