backend for xcvr appview
2
fork

Configure Feed

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

add & operator where it should have been

rachel-mp4 a93b0b5a a7f14687

+4 -4
+4 -4
server/internal/oauth/xrpcclient.go
··· 150 150 Password: secret, 151 151 } 152 152 var out atproto.ServerCreateSession_Output 153 - err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.server.createSession", nil, input, out) 153 + err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.server.createSession", nil, input, &out) 154 154 if err != nil { 155 155 return errors.New("I couldn't create a session: " + err.Error()) 156 156 } ··· 164 164 c.logger.Deprintln("refreshing session") 165 165 c.xcvrcli.Headers.Set("Authorization", fmt.Sprintf("Bearer %s", *c.refreshjwt)) 166 166 var out atproto.ServerRefreshSession_Output 167 - err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.server.refreshSession", nil, nil, out) 167 + err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.server.refreshSession", nil, nil, &out) 168 168 if err != nil { 169 169 c.logger.Println("FAILED TO REFRESH RESSION") 170 170 return errors.New("failed to refresh session! " + err.Error()) ··· 186 186 Record: &util.LexiconTypeDecoder{Val: &signet}, 187 187 } 188 188 var out atproto.RepoCreateRecord_Output 189 - err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.repo.createRecord", nil, input, out) 189 + err := c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.repo.createRecord", nil, input, &out) 190 190 if err != nil { 191 191 err1 := err.Error() 192 192 err = c.RefreshSession(ctx) ··· 195 195 } 196 196 c.xcvrcli.Headers.Set("Authorization", fmt.Sprintf("Bearer %s", *c.accessjwt)) 197 197 out = atproto.RepoCreateRecord_Output{} 198 - err = c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.repo.createRecord", nil, input, out) 198 + err = c.xcvrcli.LexDo(ctx, "POST", "application/json", "com.atproto.repo.createRecord", nil, input, &out) 199 199 if err != nil { 200 200 return errors.New("not good, failed to create signet after failing then refreshing session! first " + err1 + " then " + err.Error()) 201 201 }