this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at new_linear_stuff 36 lines 1.0 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.feed.getActorLikes 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call. 14type FeedGetActorLikes_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"` 17} 18 19// FeedGetActorLikes calls the XRPC method "app.bsky.feed.getActorLikes". 20func FeedGetActorLikes(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) { 21 var out FeedGetActorLikes_Output 22 23 params := map[string]interface{}{} 24 params["actor"] = actor 25 if cursor != "" { 26 params["cursor"] = cursor 27 } 28 if limit != 0 { 29 params["limit"] = limit 30 } 31 if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}