tangled
alpha
login
or
join now
smokesignal.events
/
smokesignal
51
fork
atom
The smokesignal.events web application
51
fork
atom
overview
issues
7
pulls
pipelines
chore: updating dep
Nick Gerakines
2 months ago
0d37980d
2155fb3b
+14
-4
3 changed files
expand all
collapse all
unified
split
lexicon
events.smokesignal.profile.json
src
http
handle_xrpc_link_attestation.rs
server.rs
+4
-2
lexicon/events.smokesignal.profile.json
···
15
15
"maxGraphemes": 200,
16
16
"maxLength": 200
17
17
},
18
18
-
"profile_host": {
18
18
+
"profileHost": {
19
19
"type": "string",
20
20
"description": "The format used for profile links",
21
21
"knownValues": [
22
22
"bsky.app",
23
23
"blacksky.community",
24
24
"aturi"
25
25
-
]
25
25
+
],
26
26
+
"maxGraphemes": 60,
27
27
+
"maxLength": 60
26
28
},
27
29
"description": {
28
30
"type": "string",
+2
-2
src/http/handle_xrpc_link_attestation.rs
···
10
10
use crate::http::context::WebContext;
11
11
use crate::storage::acceptance::acceptance_ticket_upsert;
12
12
use crate::storage::event::event_get;
13
13
-
use atproto_xrpcs::authorization::ResolvingAuthorization;
13
13
+
use atproto_xrpcs::authorization::Authorization;
14
14
15
15
/// Input for the linkAttestation XRPC endpoint
16
16
#[derive(Debug, Deserialize)]
···
83
83
/// Authorization: Caller must be both the event organizer AND the attestation owner
84
84
pub(crate) async fn handle_xrpc_link_attestation(
85
85
State(web_context): State<WebContext>,
86
86
-
auth: Option<ResolvingAuthorization>,
86
86
+
auth: Option<Authorization>,
87
87
Json(input): Json<LinkAttestationInput>,
88
88
) -> impl IntoResponse {
89
89
// 1. Require authentication
+8
src/http/server.rs
···
148
148
.route("/_alive", get(handle_alive))
149
149
.route("/_started", get(handle_started))
150
150
.route(
151
151
+
"/xrpc/community.lexicon.calendar.searchEvents",
152
152
+
get(handle_xrpc_search_events),
153
153
+
)
154
154
+
.route(
151
155
"/xrpc/community.lexicon.calendar.SearchEvents",
152
156
get(handle_xrpc_search_events),
153
157
)
154
158
.route(
159
159
+
"/xrpc/community.lexicon.calendar.getEvent",
160
160
+
get(handle_xrpc_get_event),
161
161
+
)
162
162
+
.route(
155
163
"/xrpc/community.lexicon.calendar.GetEvent",
156
164
get(handle_xrpc_get_event),
157
165
)