diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 20:42:44 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 20:48:09 -0800 |
commit | 758462f8cb9737ea8fb175cb4674984cc30bbd51 (patch) | |
tree | ea29cfa1d46b5a9b3f06720599e7233e6c46ac65 | |
parent | 9043712d1f9c09bc530de3ffd8d87635a026d26c (diff) | |
download | adenosine-758462f8cb9737ea8fb175cb4674984cc30bbd51.tar.gz adenosine-758462f8cb9737ea8fb175cb4674984cc30bbd51.zip |
getProfile now wants 'actor' not 'user'
-rw-r--r-- | adenosine-cli/src/bin/adenosine.rs | 2 | ||||
-rw-r--r-- | 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)?)) } |