tangled
alpha
login
or
join now
whey.party
/
red-dwarf-server
13
fork
atom
collection of golang services under the Red Dwarf umbrella
server.reddwarf.app
bluesky
reddwarf
microcosm
appview
13
fork
atom
overview
issues
pulls
pipelines
fix invalid appview stuff
whey.party
3 months ago
d2397ad7
a1d63583
+6
-2
1 changed file
expand all
collapse all
unified
split
main.go
+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
}
0
0
0
0
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
},