···169 #[serde(skip_serializing_if = "Vec::is_empty", default)]
170 uris: EventLinks,
171172- #[serde(
173- skip_serializing_if = "Vec::is_empty",
174- default
175- )]
176 media: MediaList,
177178 // This is a catch-all for any elements that are not implemented by
···169 #[serde(skip_serializing_if = "Vec::is_empty", default)]
170 uris: EventLinks,
171172+ #[serde(skip_serializing_if = "Vec::is_empty", default)]
000173 media: MediaList,
174175 // This is a catch-all for any elements that are not implemented by
···152 let standard_aturi = format!("at://{}/{}/{}", profile.did, NSID, event_rkey);
153154 // Try to fetch the standard event
155- standard_event_exists = event_get(&ctx.web_context.pool, &standard_aturi).await.is_ok();
00156 // Legacy events are never migrated
157 has_been_migrated = false;
158 } else {
···164 "at://{}/{}/{}",
165 profile.did, SMOKESIGNAL_EVENT_NSID, event_rkey
166 );
167- has_been_migrated = event_get(&ctx.web_context.pool, &legacy_aturi).await.is_ok();
00168 };
169170 // Try to get the event from the requested collection
···152 let standard_aturi = format!("at://{}/{}/{}", profile.did, NSID, event_rkey);
153154 // Try to fetch the standard event
155+ standard_event_exists = event_get(&ctx.web_context.pool, &standard_aturi)
156+ .await
157+ .is_ok();
158 // Legacy events are never migrated
159 has_been_migrated = false;
160 } else {
···166 "at://{}/{}/{}",
167 profile.did, SMOKESIGNAL_EVENT_NSID, event_rkey
168 );
169+ has_been_migrated = event_get(&ctx.web_context.pool, &legacy_aturi)
170+ .await
171+ .is_ok();
172 };
173174 // Try to get the event from the requested collection
+1-1
src/http/mod.rs
···13pub mod handle_admin_index;
14pub mod handle_admin_rsvp;
15pub mod handle_admin_rsvps;
016pub mod handle_create_event;
17pub mod handle_create_rsvp;
18pub mod handle_delete_event;
···44pub mod templates;
45pub mod timezones;
46pub mod utils;
47-pub mod handle_content;
···13pub mod handle_admin_index;
14pub mod handle_admin_rsvp;
15pub mod handle_admin_rsvps;
16+pub mod handle_content;
17pub mod handle_create_event;
18pub mod handle_create_rsvp;
19pub mod handle_delete_event;
···45pub mod templates;
46pub mod timezones;
47pub mod utils;
0