update files

This commit is contained in:
Astra 2025-07-13 19:28:12 +01:00
parent 6f17ff93ac
commit bafb502147

View file

@ -166,8 +166,10 @@ func (bluesky *Bluesky) DeleteRecord(args []string) *CommitResponse {
return resp
}
func (bluesky *Bluesky) FetchPost(did string, rkey string) *FetchedPost {
resp := &FetchedPost{}
func (bluesky *Bluesky) FetchPost(did string, rkey string) *[]FetchedPost {
resp := &struct {
Posts []FetchedPost `json:"posts"`
}{}
params := struct {
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").
Get("/xrpc/app.bsky.feed.getPosts").QueryStruct(&params).Receive(resp, resp)
return resp
return &resp.Posts
}