From eaaea661d85d410f97d9420b86298dc7590396a7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 19 Dec 2022 18:53:33 -0800 Subject: pds: stubs for new app.bsky.actor RPC queries --- adenosine-pds/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index c33a0a3..8e32692 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -446,6 +446,20 @@ fn xrpc_get_handler( let mut srv = srv.lock().unwrap(); Ok(json!(bsky_get_profile(&mut srv, &did)?)) } + "app.bsky.actor.search" => { + // TODO: actual implementation + let _term = xrpc_required_param(request, "term")?; + Ok(json!({"users": []})) + } + "app.bsky.actor.searchTypeahead" => { + // TODO: actual implementation + let _term = xrpc_required_param(request, "term")?; + Ok(json!({"users": []})) + } + "app.bsky.actor.getSuggestions" => { + // TODO: actual implementation + Ok(json!({"actors": []})) + } "app.bsky.feed.getAuthorFeed" => { // TODO did or handle let did = Did::from_str(&xrpc_required_param(request, "author")?)?; -- cgit v1.2.3