diff --git a/lexicon/events.smokesignal.profile.json b/lexicon/events.smokesignal.profile.json index e086263..13890c4 100644 --- a/lexicon/events.smokesignal.profile.json +++ b/lexicon/events.smokesignal.profile.json @@ -15,14 +15,16 @@ "maxGraphemes": 200, "maxLength": 200 }, - "profile_host": { + "profileHost": { "type": "string", "description": "The format used for profile links", "knownValues": [ "bsky.app", "blacksky.community", "aturi" - ] + ], + "maxGraphemes": 60, + "maxLength": 60 }, "description": { "type": "string", diff --git a/src/http/handle_xrpc_link_attestation.rs b/src/http/handle_xrpc_link_attestation.rs index 4ceafdb..93bde14 100644 --- a/src/http/handle_xrpc_link_attestation.rs +++ b/src/http/handle_xrpc_link_attestation.rs @@ -10,7 +10,7 @@ use std::str::FromStr; use crate::http::context::WebContext; use crate::storage::acceptance::acceptance_ticket_upsert; use crate::storage::event::event_get; -use atproto_xrpcs::authorization::ResolvingAuthorization; +use atproto_xrpcs::authorization::Authorization; /// Input for the linkAttestation XRPC endpoint #[derive(Debug, Deserialize)] @@ -83,7 +83,7 @@ impl LinkAttestationError { /// Authorization: Caller must be both the event organizer AND the attestation owner pub(crate) async fn handle_xrpc_link_attestation( State(web_context): State, - auth: Option, + auth: Option, Json(input): Json, ) -> impl IntoResponse { // 1. Require authentication diff --git a/src/http/server.rs b/src/http/server.rs index 6ff1e02..6f74a1e 100644 --- a/src/http/server.rs +++ b/src/http/server.rs @@ -147,11 +147,19 @@ pub fn build_router(web_context: WebContext) -> Router { .route("/_ready", get(handle_ready)) .route("/_alive", get(handle_alive)) .route("/_started", get(handle_started)) + .route( + "/xrpc/community.lexicon.calendar.searchEvents", + get(handle_xrpc_search_events), + ) .route( "/xrpc/community.lexicon.calendar.SearchEvents", get(handle_xrpc_search_events), ) .route( + "/xrpc/community.lexicon.calendar.getEvent", + get(handle_xrpc_get_event), + ) + .route( "/xrpc/community.lexicon.calendar.GetEvent", get(handle_xrpc_get_event), )