fix(content): bound remote resource usage

This commit is contained in:
objz committed 2026-08-04 21:02:35 +02:00
1 parent bf2957e75b
commit d488954548
7 files changed
+82 -7

No files matched your search

+4 -1
View File
@@ -1006,7 +1006,10 @@ impl App {
.await
.map_err(|error| error.to_string())?;
let bytes = client
.get_bytes(&url)
.get_bytes_limited(
&url,
crate::tui::widgets::markdown::MAX_PROJECT_IMAGE_BYTES,
)
.await
.map_err(|error| error.to_string())?;
tokio::task::spawn_blocking(move || {