This commit is contained in:
froge 2024-07-10 03:13:05 +10:00
parent be002a4e4b
commit 2dad7aa33a
Signed by: froge
GPG key ID: A825E09930271BFA

View file

@ -125,7 +125,7 @@ pub async fn embed_handler(event: OriginalSyncRoomMessageEvent, room: Room, clie
for url in urls { for url in urls {
match reqwest_client.get(url).send().await { match reqwest_client.get(url).send().await {
Err(e) => warn!("Failed to fetch metadata for URL'{}' with error: '{:?}'", &url, e), Err(e) => warn!("Failed to fetch metadata for URL '{}' with error: '{:?}'", &url, e),
Ok(req) => { Ok(req) => {
match req.text().await { match req.text().await {
Err(e) => warn!("Failed to parse HTML for URL '{}' with error: '{:?}'", &url, e), Err(e) => warn!("Failed to parse HTML for URL '{}' with error: '{:?}'", &url, e),