update files
This commit is contained in:
parent
6f17ff93ac
commit
bafb502147
1 changed files with 5 additions and 3 deletions
|
@ -166,8 +166,10 @@ func (bluesky *Bluesky) DeleteRecord(args []string) *CommitResponse {
|
||||||
return resp
|
return resp
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bluesky *Bluesky) FetchPost(did string, rkey string) *FetchedPost {
|
func (bluesky *Bluesky) FetchPost(did string, rkey string) *[]FetchedPost {
|
||||||
resp := &FetchedPost{}
|
resp := &struct {
|
||||||
|
Posts []FetchedPost `json:"posts"`
|
||||||
|
}{}
|
||||||
params := struct {
|
params := struct {
|
||||||
URIs string `url:"uris"`
|
URIs string `url:"uris"`
|
||||||
}{
|
}{
|
||||||
|
@ -175,5 +177,5 @@ func (bluesky *Bluesky) FetchPost(did string, rkey string) *FetchedPost {
|
||||||
}
|
}
|
||||||
bluesky.sling.New().Base("https://public.api.bsky.app").
|
bluesky.sling.New().Base("https://public.api.bsky.app").
|
||||||
Get("/xrpc/app.bsky.feed.getPosts").QueryStruct(¶ms).Receive(resp, resp)
|
Get("/xrpc/app.bsky.feed.getPosts").QueryStruct(¶ms).Receive(resp, resp)
|
||||||
return resp
|
return &resp.Posts
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue