tangled
alpha
login
or
join now
8bit.lol
/
pegasus
forked from
futur.blue/pegasus
0
fork
atom
objective categorical abstract machine language personal data server
0
fork
atom
overview
issues
pulls
pipelines
Fix getFeed proxying
futur.blue
2 months ago
d501324b
8ac70d14
verified
This commit was signed with the committer's
known signature
.
futur.blue
SSH Key Fingerprint:
SHA256:QHGqHWNpqYyw9bt8KmPuJIyeZX9SZewBZ0PR1COtKQ0=
+5
-4
1 changed file
expand all
collapse all
unified
split
pegasus
lib
api
proxy
appBskyFeedGetFeed.ml
+5
-4
pegasus/lib/api/proxy/appBskyFeedGetFeed.ml
···
19
19
| Ok did_doc -> (
20
20
let pds_host =
21
21
match
22
22
-
Option.bind
23
23
-
(Id_resolver.Did.Document.get_service did_doc "#atproto_pds")
24
24
-
(fun s -> s |> Uri.of_string |> Uri.host )
22
22
+
Id_resolver.Did.Document.get_service did_doc "#atproto_pds"
25
23
with
26
24
| Some endpoint ->
27
25
endpoint
···
50
48
~lxm:"app.bsky.feed.getFeedSkeleton"
51
49
| None ->
52
50
Errors.invalid_request "missing proxy header" )
53
53
-
with _ ->
51
51
+
with e ->
52
52
+
Dream.error (fun log ->
53
53
+
log "failed to fetch feed generator record: %s"
54
54
+
(Printexc.to_string e) ) ;
54
55
Errors.internal_error ~msg:"failed to fetch feed generator record"
55
56
() ) ) )