Update router/src/lib.rs

This commit is contained in:
Nicolas Patry 2024-04-30 12:16:24 +02:00 committed by GitHub
parent ecd00d56d6
commit 7182d5de83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -928,7 +928,7 @@ mod message_content_serde {
"text" => Ok(content.text.unwrap_or_default()), "text" => Ok(content.text.unwrap_or_default()),
"image_url" => { "image_url" => {
if let Some(url) = content.image_url { if let Some(url) = content.image_url {
Ok(format!("\n![]({})", url.url)) Ok(format!("![]({})", url.url))
} else { } else {
Ok(String::new()) Ok(String::new())
} }