this repo has no description
0
fork

Configure Feed

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

pds: small tweaks for Lexicon/lexgen changes

+7 -7
+7 -7
pds/handlers.go
··· 45 45 Cid: profile.DeclRefCid, 46 46 ActorType: profile.Type, 47 47 }, 48 - Description: nil, 49 - PostsCount: profile.Posts, 50 - FollowsCount: profile.Following, 51 - MembersCount: 0, // TODO: 48 + Description: nil, 49 + PostsCount: profile.Posts, 50 + FollowsCount: profile.Following, 51 + //MembersCount: 0, // TODO: 52 52 Handle: profile.Handle, 53 53 Creator: "", //TODO: 54 54 DisplayName: &profile.DisplayName, ··· 586 586 } 587 587 588 588 func (s *Server) handleComAtprotoSessionCreate(ctx context.Context, input *comatprototypes.SessionCreate_Input) (*comatprototypes.SessionCreate_Output, error) { 589 - u, err := s.lookupUserByHandle(ctx, input.Handle) 589 + u, err := s.lookupUserByHandle(ctx, *input.Identifier) 590 590 if err != nil { 591 591 return nil, err 592 592 } ··· 595 595 return nil, fmt.Errorf("invalid username or password") 596 596 } 597 597 598 - tok, err := s.createAuthTokenForUser(ctx, input.Handle, u.Did) 598 + tok, err := s.createAuthTokenForUser(ctx, *input.Identifier, u.Did) 599 599 if err != nil { 600 600 return nil, err 601 601 } 602 602 603 603 return &comatprototypes.SessionCreate_Output{ 604 - Handle: input.Handle, 604 + Handle: *input.Identifier, 605 605 Did: u.Did, 606 606 AccessJwt: tok.AccessJwt, 607 607 RefreshJwt: tok.RefreshJwt,