Fix hardcoded pictrs URL reference

Reads the URL from Settings instead
pull/1246/head
Kenneth Koski 2020-10-31 16:52:54 -05:00
parent fc36ae22c9
commit 1ae335e058
No known key found for this signature in database
GPG Key ID: 0B5640605A253F72
1 changed files with 2 additions and 1 deletions

View File

@ -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
);