this repo has no description
0
fork

Configure Feed

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

fix reverse account takedown

+12 -1
+12 -1
cmd/relay/handlers_admin.go
··· 106 106 func (s *Service) handleAdminReverseTakedown(c echo.Context) error { 107 107 ctx := c.Request().Context() 108 108 109 - did, err := syntax.ParseDID(c.QueryParam("did")) 109 + var body map[string]string 110 + if err := c.Bind(&body); err != nil { 111 + return err 112 + } 113 + didField, ok := body["did"] 114 + if !ok { 115 + return &echo.HTTPError{ 116 + Code: http.StatusBadRequest, 117 + Message: "must specify DID parameter in body", 118 + } 119 + } 120 + did, err := syntax.ParseDID(didField) 110 121 if err != nil { 111 122 return err 112 123 }