15 lines
713 B
Go
15 lines
713 B
Go
|
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
|
||
|
}
|