diff --git a/crates/notedeck_columns/src/media_upload.rs b/crates/notedeck_columns/src/media_upload.rs index 44090668..73447eb8 100644 --- a/crates/notedeck_columns/src/media_upload.rs +++ b/crates/notedeck_columns/src/media_upload.rs @@ -118,7 +118,7 @@ fn create_nip96_request( method: "POST".to_string(), url: upload_url.to_string(), headers, - body: body.into(), + body, } } diff --git a/crates/notedeck_columns/src/ui/note/post.rs b/crates/notedeck_columns/src/ui/note/post.rs index e4283d7c..0ddf77e9 100644 --- a/crates/notedeck_columns/src/ui/note/post.rs +++ b/crates/notedeck_columns/src/ui/note/post.rs @@ -269,7 +269,7 @@ impl<'a> PostView<'a> { let m_cached_promise = self.img_cache.map().get(&media.url); if m_cached_promise.is_none() { let promise = fetch_img( - &self.img_cache, + self.img_cache, ui.ctx(), &media.url, crate::images::ImageType::Content(width, height),