diff --git a/src/post_listener.rs b/src/post_listener.rs index 972fea5..80f2a07 100644 --- a/src/post_listener.rs +++ b/src/post_listener.rs @@ -98,7 +98,7 @@ pub async fn websocket_listener(pool: sqlx::Pool) { .collect::>(); for (rkey, uri) in features { - let uri_parts: Vec<&str> = uri.split('/').collect(); + let uri_parts: Vec<&str> = uri.split_terminator('/').collect(); if let Some(&slug) = uri_parts.last() { let time_us_string = info.time_us.to_string(); let time_us = &time_us_string;