linstrom/ap/like-action.go

13 lines
531 B
Go
Raw Normal View History

2024-01-31 16:56:07 +00:00
package ap
import "net/url"
// Action to like a post
type LikeAction 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 "Like"
Actor url.URL `json:"actor"` // Who is liking something
Object url.URL `json:"object"` // What is being liked
}