alpha
Login
or
Join now
willdot.net
/
distributed-pds
forked from
willdot.net/cocoon
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A fork of the Cocoon PDS but being made more distributed.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix typo in wellknown url (#24)
author
hailey
committer
GitHub
date
10 months ago
(Aug 2, 2025, 11:55 AM -0700)
commit
9d97b6b9
9d97b6b9440984e0b8d3171ab603c06bfc2189e5
parent
9a59a94b
9a59a94b0e24f73f33ee1a26cc5cc280e2d664b9
+3
-4
2 changed files
Expand all
Collapse all
Unified
Split
identity
identity.go
passport.go
+3
-3
identity/identity.go
Reviewed
···
33
33
}
34
34
35
35
func ResolveHandleFromWellKnown(ctx context.Context, cli *http.Client, handle string) (string, error) {
36
36
-
ustr := fmt.Sprintf("https://%s/.well=known/atproto-did", handle)
36
36
+
ustr := fmt.Sprintf("https://%s/.well-known/atproto-did", handle)
37
37
req, err := http.NewRequestWithContext(
38
38
ctx,
39
39
"GET",
···
92
92
func DidToDocUrl(did string) (string, error) {
93
93
if strings.HasPrefix(did, "did:plc:") {
94
94
return fmt.Sprintf("https://plc.directory/%s", did), nil
95
95
-
} else if strings.HasPrefix(did, "did:web:") {
96
96
-
return fmt.Sprintf("https://%s/.well-known/did.json", strings.TrimPrefix(did, "did:web:")), nil
95
95
+
} else if after, ok := strings.CutPrefix(did, "did:web:"); ok {
96
96
+
return fmt.Sprintf("https://%s/.well-known/did.json", after), nil
97
97
} else {
98
98
return "", fmt.Errorf("did was not a supported did type")
99
99
}
-1
identity/passport.go
Reviewed
···
46
46
}
47
47
}
48
48
49
49
-
// TODO: should coalesce requests here
50
49
doc, err := FetchDidDoc(ctx, p.h, did)
51
50
if err != nil {
52
51
return nil, err