linstrom/ap/announce-action.go

15 lines
713 B
Go
Raw Normal View History

2024-01-31 16:56:07 +00:00
package ap
import "net/url"
// Announce == boost/share/retweet
type AnnounceAction struct {
Context *map[string]any `json:"@context,omitempty"` // Lots of something. Not included if action is embedded as object in another object
Id url.URL `json:"id"` // Url to this action
Type string `json:"type"` // Should always be "Announce"
Actor url.URL `json:"actor"` // Who is announcing something
To []url.URL `json:"to"` // Targets to share to
Cc []url.URL `json:"cc"` // More targets to send to
Object url.URL `json:"object"` // Url to announced object
}