From: Dessalines Date: Tue, 15 Sep 2020 17:54:10 +0000 (-0500) Subject: Fix pictrs fetch url to use https X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7BcommunityRss%7D?a=commitdiff_plain;h=538965cad07d3c64319dc472949d342b85ab68b4;p=lemmy-ui.git Fix pictrs fetch url to use https --- diff --git a/src/shared/env.ts b/src/shared/env.ts index 073e8e5..0490e2c 100644 --- a/src/shared/env.ts +++ b/src/shared/env.ts @@ -24,7 +24,7 @@ const host = isBrowser() ? externalHost : internalHost; const httpBase = `http://${host}`; // Don't use secure here export const wsUri = `ws${secure}://${host}/api/v1/ws`; export const httpUri = `${httpBase}/api/v1`; -export const pictrsUri = `${httpBase}/pictrs/image`; +export const pictrsUri = `http${secure}://${host}/pictrs/image`; console.log(`httpbase: ${httpBase}`); console.log(`wsUri: ${wsUri}`);