This commit is contained in:
parent
8d2e008125
commit
4b62c32247
4 changed files with 77 additions and 2 deletions
12
activitypub/translators/like.go
Normal file
12
activitypub/translators/like.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package translators
|
||||
|
||||
type ActivityLikeOut struct {
|
||||
Context any `json:"@context"`
|
||||
Type string `json:"type"`
|
||||
Id string `json:"id"`
|
||||
Actor string `json:"actor"`
|
||||
Object string `json:"object"`
|
||||
Content *string `json:"content,omitempty"`
|
||||
MkReaction *string `json:"_misskey_reaction,omitempty"`
|
||||
Tags []Tag `json:"tag,omitempty"`
|
||||
}
|
|
@ -13,8 +13,15 @@ import (
|
|||
|
||||
type Tag struct {
|
||||
Type string `json:"type"`
|
||||
Href string `json:"href"`
|
||||
Name string `json:"name"`
|
||||
|
||||
// ---- Section Hashtag & Mention
|
||||
Href *string `json:"href,omitempty"`
|
||||
|
||||
// Section Emote
|
||||
Id *string `json:"id,omitempty"`
|
||||
Updated *time.Time `json:"updated,omitempty"`
|
||||
Icon *Media `json:"icon,omitempty"`
|
||||
}
|
||||
|
||||
type ObjectNote struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue