tangled
alpha
login
or
join now
retr0.id
/
millipds
10
fork
atom
A from-scratch atproto PDS implementation in Python (mirrors https://github.com/DavidBuchanan314/millipds)
10
fork
atom
overview
issues
pulls
pipelines
don't clobber service variable in appview proxy
retr0.id
1 year ago
6464e8b0
e4c51000
+7
-5
1 changed file
expand all
collapse all
unified
split
src
millipds
appview_proxy.py
+7
-5
src/millipds/appview_proxy.py
···
29
)
30
if did_doc is None:
31
return web.HTTPInternalServerError(
32
-
f"unable to resolve service {service!r}"
33
)
34
-
for service in did_doc.get("service", []):
35
-
if service.get("id") == fragment:
36
-
service_route = service["serviceEndpoint"]
37
break
38
else:
39
-
return web.HTTPBadRequest(text=f"unable to resolve service {service!r}")
0
0
40
else: # fall thru to assuming bsky appview
41
service_did = db.config["bsky_appview_did"]
42
service_route = db.config["bsky_appview_pfx"]
···
29
)
30
if did_doc is None:
31
return web.HTTPInternalServerError(
32
+
text=f"unable to resolve service {service!r}"
33
)
34
+
for service_info in did_doc.get("service", []):
35
+
if service_info.get("id") == fragment:
36
+
service_route = service_info["serviceEndpoint"]
37
break
38
else:
39
+
return web.HTTPBadRequest(
40
+
text=f"unable to resolve service {service!r}"
41
+
)
42
else: # fall thru to assuming bsky appview
43
service_did = db.config["bsky_appview_did"]
44
service_route = db.config["bsky_appview_pfx"]