diff --git a/crates/routes/src/feeds.rs b/crates/routes/src/feeds.rs index d2a062606..75542e740 100644 --- a/crates/routes/src/feeds.rs +++ b/crates/routes/src/feeds.rs @@ -130,8 +130,8 @@ async fn get_feed( ) -> Result { let sort_type = get_sort_type(info).map_err(ErrorBadRequest)?; - let req_type: String = req.match_info().get("type").unwrap().parse().unwrap(); - let param: String = req.match_info().get("name").unwrap().parse().unwrap(); + let req_type: String = req.match_info().get("type").unwrap_or("none").parse()?; + let param: String = req.match_info().get("name").unwrap_or("none").parse()?; let request_type = match req_type.as_str() { "u" => RequestType::User,