@@ -118,7 +118,7 @@ fn create_nip96_request(
|
|||||||
method: "POST".to_string(),
|
method: "POST".to_string(),
|
||||||
url: upload_url.to_string(),
|
url: upload_url.to_string(),
|
||||||
headers,
|
headers,
|
||||||
body: body.into(),
|
body,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ impl<'a> PostView<'a> {
|
|||||||
let m_cached_promise = self.img_cache.map().get(&media.url);
|
let m_cached_promise = self.img_cache.map().get(&media.url);
|
||||||
if m_cached_promise.is_none() {
|
if m_cached_promise.is_none() {
|
||||||
let promise = fetch_img(
|
let promise = fetch_img(
|
||||||
&self.img_cache,
|
self.img_cache,
|
||||||
ui.ctx(),
|
ui.ctx(),
|
||||||
&media.url,
|
&media.url,
|
||||||
crate::images::ImageType::Content(width, height),
|
crate::images::ImageType::Content(width, height),
|
||||||
|
|||||||
Reference in New Issue
Block a user