linstrom/ap/accept-action.go
2024-01-31 16:56:07 +00:00

12 lines
587 B
Go

package ap
import "net/url"
// Sent when a follow request is approved, manually or automatically
type AcceptAction 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 "Accept"
Actor url.URL `json:"actor"` // Who is accepting what
Object FollowAction `json:"object"` // Action that is being accepted
}