backend for xcvr appview
2
fork

Configure Feed

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

don't quit early if fail to find existing record on create profile

rachel-mp4 6e59c489 eb40ac22

+13 -15
+13 -15
server/internal/oauth/oauthclient.go
··· 86 86 return 87 87 } 88 88 getOut, err := getProfileRecord(authargs.PdsUrl, authargs.Did, ctx) 89 - if err != nil { 90 - err = errors.New("failed to getProfileRecord while creating XCVR profile: " + err.Error()) 91 - return 92 - } 93 - if getOut.Cid != nil { 94 - var jsonBytes []byte 95 - jsonBytes, err = json.Marshal(getOut.Value) 96 - if err != nil { 97 - return 98 - } 99 - var pro lex.ProfileRecord 100 - err = json.Unmarshal(jsonBytes, &pro) 101 - if err != nil { 102 - return 89 + if err == nil { 90 + if getOut.Cid != nil { 91 + var jsonBytes []byte 92 + jsonBytes, err = json.Marshal(getOut.Value) 93 + if err != nil { 94 + return 95 + } 96 + var pro lex.ProfileRecord 97 + err = json.Unmarshal(jsonBytes, &pro) 98 + if err != nil { 99 + return 100 + } 101 + return &pro, nil 103 102 } 104 - return &pro, nil 105 103 } 106 104 rkey := "self" 107 105 input := atproto.RepoCreateRecord_Input{