Live video on the AT Protocol
79
fork

Configure Feed

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

at eli/components 27 lines 817 B view raw
1package spxrpc 2 3import ( 4 "context" 5 "net/http" 6 7 appbskytypes "github.com/bluesky-social/indigo/api/bsky" 8 "github.com/bluesky-social/indigo/xrpc" 9 "github.com/labstack/echo/v4" 10 "github.com/streamplace/oatproxy/pkg/oatproxy" 11) 12 13func (s *Server) handleAppBskyActorGetProfile(ctx context.Context, actor string) (*appbskytypes.ActorDefs_ProfileViewDetailed, error) { 14 session, client := oatproxy.GetOAuthSession(ctx) 15 if session == nil { 16 return nil, echo.NewHTTPError(http.StatusUnauthorized, "oauth session not found") 17 } 18 19 // brief check to make sure we can actually do stuff 20 var out appbskytypes.ActorDefs_ProfileViewDetailed 21 err := client.Do(ctx, xrpc.Query, "application/json", "app.bsky.actor.getProfile", map[string]any{"actor": actor}, nil, &out) 22 if err != nil { 23 return nil, err 24 } 25 26 return &out, nil 27}