diff --git a/lemmy_utils/src/request.rs b/lemmy_utils/src/request.rs index cbd778c6e..a3bca6fd4 100644 --- a/lemmy_utils/src/request.rs +++ b/lemmy_utils/src/request.rs @@ -88,7 +88,8 @@ pub(crate) async fn fetch_pictrs( is_image_content_type(client, image_url).await?; let fetch_url = format!( - "http://pictrs:8080/image/download?url={}", + "{}/image/download?url={}", + Settings::get().pictrs_url, utf8_percent_encode(image_url, NON_ALPHANUMERIC) // TODO this might not be needed );