this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feature: support did:web

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+5 -1
+5 -1
src/vmc.rs
··· 88 88 } 89 89 90 90 async fn plc_query(&self, did: &str) -> Result<String> { 91 - let url = format!("https://{}/{}", self.plc_hostname, did); 91 + let url = if let Some(hostname) = did.strip_prefix("did:web:") { 92 + format!("https://{}/.well-known/did.json", hostname) 93 + } else { 94 + format!("https://{}/{}", self.plc_hostname, did) 95 + }; 92 96 93 97 let resolved_did: ResolvedPlcDid = self 94 98 .http_client