backend for xcvr appview
2
fork

Configure Feed

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

added returns what was i thinking

rachel-mp4 87f175e2 e4205475

+3
+3
server/internal/handler/lrcHandlers.go
··· 193 193 } 194 194 if handle == nil || *handle != atputils.GetMyHandle() { 195 195 h.badRequest(w, errors.New("i only post my messages")) 196 + return 196 197 } 197 198 curi, mid, err := h.db.QuerySignetChannelIdNum(lmr.SignetURI, r.Context()) 198 199 if err != nil { 199 200 h.serverError(w, err) 201 + return 200 202 } 201 203 correctNonce := lrcd.GenerateNonce(mid, curi, os.Getenv("LRCD_SECRET")) 202 204 if !slices.Equal(nonce, correctNonce) { 203 205 h.badRequest(w, errors.New("i think user tried to post someone else's post")) 206 + return 204 207 } 205 208 uri, cid, err := h.myClient.CreateXCVRMessage(lmr, r.Context()) 206 209 if err != nil {