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 #4

open opened by willdot.net targeting main from push-uqytxwxtzsuo

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

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:dadhhalkfcq3gucaq25hjqon/sh.tangled.repo.pull/3mkxfpr2mnc22
+19 -2
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
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}, ··· 22 24 return Err(XrpcErrorResponse::not_implemented()); 23 25 } 24 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> { 32 + return Err(XrpcErrorResponse::not_implemented()); 33 + } 34 + 25 35 pub async fn app_bsky_feed_get_feed( 26 36 State(_): State<AppState>, 27 37 ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth,

History

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