]> Untitled Git - lemmy-ui.git/commitdiff
Fix pictrs fetch url to use https
authorDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 17:54:10 +0000 (12:54 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 17:54:10 +0000 (12:54 -0500)
src/shared/env.ts

index 073e8e5a6442a13d9d6eb68dfe59279974efb1e7..0490e2c6dbb84dab82d6033c6b5130c511e60f27 100644 (file)
@@ -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}`);