tiny 88x31 lexicon for atproto
0
fork

Configure Feed

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

i think i need a 300 for redirect to go through

+2 -2
+2 -2
handler/upload.go
··· 86 86 ll, err := h.db.GetMyLikesFor(uri, cid, cs.Data.AccountDID.String(), r.Context()) 87 87 if err != nil { 88 88 log.Println(err) 89 - http.Redirect(w, r, fmt.Sprintf("/button?uri=%s", uri), http.StatusCreated) 89 + http.Redirect(w, r, fmt.Sprintf("/button?uri=%s", uri), http.StatusSeeOther) 90 90 return 91 91 } 92 92 for _, likeuri := range ll { ··· 109 109 } 110 110 } 111 111 log.Println("redirecting") 112 - http.Redirect(w, r, fmt.Sprintf("/button?uri=%s", uri), http.StatusCreated) 112 + http.Redirect(w, r, fmt.Sprintf("/button?uri=%s", uri), http.StatusSeeOther) 113 113 } 114 114 115 115 func (h *Handler) upload(cs *oauth.ClientSession, w http.ResponseWriter, r *http.Request) {