From 758462f8cb9737ea8fb175cb4674984cc30bbd51 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 19 Dec 2022 20:42:44 -0800 Subject: getProfile now wants 'actor' not 'user' --- adenosine-cli/src/bin/adenosine.rs | 2 +- adenosine-pds/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs index 4c21170..21fdf31 100644 --- a/adenosine-cli/src/bin/adenosine.rs +++ b/adenosine-cli/src/bin/adenosine.rs @@ -602,7 +602,7 @@ fn run(opt: Opt) -> Result<()> { .map(|v| v.to_string()) .or(jwt_did) .ok_or(anyhow!("expected a name, or self via auth token"))?; - params.insert("user".to_string(), name); + params.insert("actor".to_string(), name); xrpc_client.get(&Nsid::from_str("app.bsky.actor.getProfile")?, Some(params))? } Command::Bsky { diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index c9f9e0a..6c4649d 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -442,7 +442,7 @@ fn xrpc_get_handler( // =========== app.bsky methods "app.bsky.actor.getProfile" => { // TODO did or handle - let did = Did::from_str(&xrpc_required_param(request, "user")?)?; + let did = Did::from_str(&xrpc_required_param(request, "actor")?)?; let mut srv = srv.lock().unwrap(); Ok(json!(bsky_get_profile(&mut srv, &did)?)) } -- cgit v1.2.3