mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 20:31:19 +00:00
Fix hardcoded pictrs URL reference
Reads the URL from Settings instead
This commit is contained in:
parent
fc36ae22c9
commit
1ae335e058
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue