···12121313const (
1414 defaultLimit = 50
1515- ES256K = "ES256K"
1616- ES256 = "ES256"
1715)
18161917// FeedSkeletonReponse describes a response that will contain a skeleton feed
···3129// HandleGetFeedSkeleton is the handler that will build up and return a feed response
3230func (s *Server) HandleGetFeedSkeleton(w http.ResponseWriter, r *http.Request) {
3331 slog.Debug("got request for feed skeleton", "host", r.RemoteAddr)
3232+3333+ // if you need to get a feed based on the user making the request you can use this to get the callers DID.
3434+ // It's also a good idea to have this here incase you're getting spammed by non bluesky users - looking at you bots!
3535+ _, err := getRequestUserDID(r)
3636+ if err != nil {
3737+ slog.Error("validate user auth", "error", err)
3838+ http.Error(w, "validate auth", http.StatusUnauthorized)
3939+ return
4040+ }
34413542 params := r.URL.Query()
3643