Parakeet is a Rust-based Bluesky AppView aiming to implement most of the functionality required to support the Bluesky client

fix(consumer): i forgor mentions is nullable

handle.invalid d3c0c5d8 bb27cc62

verified
Changed files
+2 -2
consumer
src
+2 -2
consumer/src/db/gates.rs
··· 65 let mentions: Vec<String> = conn 66 .query_opt("SELECT mentions FROM posts WHERE at_uri=$1", &[&root]) 67 .await? 68 - .map(|r| r.try_get(0)) 69 .transpose()? 70 .unwrap_or_default(); 71 ··· 181 let mentions: Vec<String> = conn 182 .query_opt("SELECT mentions FROM posts WHERE at_uri=$1", &[&root]) 183 .await? 184 - .map(|r| r.try_get(0)) 185 .transpose()? 186 .unwrap_or_default(); 187
··· 65 let mentions: Vec<String> = conn 66 .query_opt("SELECT mentions FROM posts WHERE at_uri=$1", &[&root]) 67 .await? 68 + .and_then(|r| r.try_get::<_, Option<_>>(0).transpose()) 69 .transpose()? 70 .unwrap_or_default(); 71 ··· 181 let mentions: Vec<String> = conn 182 .query_opt("SELECT mentions FROM posts WHERE at_uri=$1", &[&root]) 183 .await? 184 + .and_then(|r| r.try_get::<_, Option<_>>(0).transpose()) 185 .transpose()? 186 .unwrap_or_default(); 187