collection of golang services under the Red Dwarf umbrella server.reddwarf.app
bluesky reddwarf microcosm appview

fix invalid appview stuff

+6 -2
+6 -2
main.go
··· 174 }(clientUUID) 175 } 176 }) 177 - http.ListenAndServe(":7152", nil) 178 } 179 180 func getPostThreadV2(w http.ResponseWriter, r *http.Request) { ··· 202 log.Println(fmt.Errorf("error parsing serviceDID: %w", err)) 203 return 204 } 205 didDoc := did.Document{ 206 Context: []string{did.CtxDIDv1}, 207 ID: serviceDID, 208 Service: []did.Service{ 209 { 210 - ID: serviceDID, 211 Type: "BskyAppView", 212 ServiceEndpoint: serviceEndpoint, 213 },
··· 174 }(clientUUID) 175 } 176 }) 177 + router.Run(":7152") 178 } 179 180 func getPostThreadV2(w http.ResponseWriter, r *http.Request) { ··· 202 log.Println(fmt.Errorf("error parsing serviceDID: %w", err)) 203 return 204 } 205 + serviceID, err := did.ParseDID("#bsky_fg") 206 + if err != nil { 207 + panic(err) 208 + } 209 didDoc := did.Document{ 210 Context: []string{did.CtxDIDv1}, 211 ID: serviceDID, 212 Service: []did.Service{ 213 { 214 + ID: serviceID, 215 Type: "BskyAppView", 216 ServiceEndpoint: serviceEndpoint, 217 },