A personal app view to see Bsky posts of your followers (for when their app view goes down)
17
fork

Configure Feed

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

add get profile endpoint but return unimplemented #7

open opened by willdot.net targeting main from push-szttzpqmmmso
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:dadhhalkfcq3gucaq25hjqon/sh.tangled.repo.pull/3mkxgvgsxvb22
+19 -3
Diff #0
+9 -2
src/server.rs
··· 13 13 use std::net::SocketAddr; 14 14 15 15 use jacquard_api::{ 16 - app_bsky::feed::{get_feed::GetFeedRequest, get_timeline::GetTimelineRequest}, 16 + app_bsky::{ 17 + actor::get_profile::{GetProfile, GetProfileRequest}, 18 + feed::{get_feed::GetFeedRequest, get_timeline::GetTimelineRequest}, 19 + }, 17 20 com_atproto::repo::get_record::GetRecordRequest, 18 21 }; 19 22 20 23 use crate::xrpc::routes::{ 21 - app_bsky_feed_get_feed, app_bsky_feed_get_timeline, com_atproto_repo_get_record, 24 + app_bsky_actor_get_profile, app_bsky_feed_get_feed, app_bsky_feed_get_timeline, 25 + com_atproto_repo_get_record, 22 26 }; 23 27 24 28 #[derive(Clone)] ··· 61 65 .merge(GetRecordRequest::into_router::<_, AppState, _>( 62 66 com_atproto_repo_get_record, 63 67 )) 68 + .merge(GetProfileRequest::into_router::<_, AppState, _>( 69 + app_bsky_actor_get_profile, 70 + )) 64 71 .with_state(app_state); 65 72 66 73 let addr: SocketAddr = format!("{host}:{port}")
+10 -1
src/xrpc/routes.rs
··· 2 2 use crate::server::XrpcErrorResponse; 3 3 use axum::{Json, extract::State}; 4 4 use jacquard::xrpc::atproto::GetRecordOutput; 5 + use jacquard_api::app_bsky::actor::get_profile::GetProfileOutput; 6 + use jacquard_api::app_bsky::actor::get_profile::GetProfileRequest; 5 7 use jacquard_api::app_bsky::feed::get_timeline::GetTimelineOutput; 6 8 use jacquard_api::app_bsky::feed::{ 7 9 get_feed::{GetFeedOutput, GetFeedRequest}, 8 10 get_timeline::GetTimelineRequest, 9 11 }; 10 - 11 12 use jacquard_api::tools_ozone::moderation::get_record::GetRecordRequest; 12 13 use jacquard_axum::ExtractXrpc; 13 14 use jacquard_axum::service_auth::ExtractOptionalServiceAuth; 14 15 use serde_json::Value; 15 16 use serde_json::json; 16 17 18 + pub async fn app_bsky_actor_get_profile( 19 + State(_): State<AppState>, 20 + ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth, 21 + ExtractXrpc(_): ExtractXrpc<GetProfileRequest>, 22 + ) -> Result<Json<GetProfileOutput<'static>>, XrpcErrorResponse> { 23 + return Err(XrpcErrorResponse::not_implemented()); 24 + } 25 + 17 26 pub async fn com_atproto_repo_get_record( 18 27 State(_): State<AppState>, 19 28 ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth,

History

1 round 0 comments
sign up or login to add to the discussion
willdot.net submitted #0
1 commit
expand
add get profile endpoint but return unimplemented
merge conflicts detected
expand
  • src/server.rs:13
  • src/xrpc/routes.rs:2
expand 0 comments