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.

added get profile and return not implemented

Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>

+19 -2
+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)] ··· 60 64 )) 61 65 .merge(GetRecordRequest::into_router::<_, AppState, _>( 62 66 com_atproto_repo_get_record, 67 + )) 68 + .merge(GetProfileRequest::into_router::<_, AppState, _>( 69 + app_bsky_actor_get_profile, 63 70 )) 64 71 .with_state(app_state); 65 72
+10
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}, ··· 19 21 ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth, 20 22 ExtractXrpc(_): ExtractXrpc<GetRecordRequest>, 21 23 ) -> Result<Json<GetRecordOutput<'static>>, XrpcErrorResponse> { 24 + return Err(XrpcErrorResponse::not_implemented()); 25 + } 26 + 27 + pub async fn app_bsky_actor_get_profile( 28 + State(_): State<AppState>, 29 + ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth, 30 + ExtractXrpc(_): ExtractXrpc<GetProfileRequest>, 31 + ) -> Result<Json<GetProfileOutput<'static>>, XrpcErrorResponse> { 22 32 return Err(XrpcErrorResponse::not_implemented()); 23 33 } 24 34