The world's most clever kitty cat
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Handle REPLY_CHANNELS being an empty string

Ben C 071bacb4 6cb3b33e

+7 -1
+7 -1
src/main.rs
··· 150 150 let reply_channels = std::env::var("REPLY_CHANNELS") 151 151 .context("Missing REPLY_CHANNELS env var")? 152 152 .split(",") 153 - .map(|s| s.trim().parse::<u64>().map(|c| Id::new(c))) 153 + .filter_map(|s| { 154 + if s.trim().is_empty() { 155 + None 156 + } else { 157 + Some(s.trim().parse::<u64>().map(|c| Id::new(c))) 158 + } 159 + }) 154 160 .collect::<Result<_, _>>() 155 161 .context("Invalid channel IDs for REPLY_CHANNELS")?; 156 162 let brain_file_path =