[backend] Don't proxy relative URLs
This fixes the instance icon for the local instance not being rendered correctly. Resolves #426
This commit is contained in:
parent
1c06b84011
commit
4a90408386
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ export const DriveFileRepository = db.getRepository(DriveFile).extend({
|
|||
|
||||
getFinalUrl(url: string): string {
|
||||
if (!config.proxyRemoteFiles) return url;
|
||||
if (!url.startsWith('https://') && !url.startsWith('http://')) return url;
|
||||
if (url.startsWith(`${config.url}/files`)) return url;
|
||||
if (url.startsWith(`${config.url}/static-assets`)) return url;
|
||||
if (url.startsWith(`${config.url}/identicon`)) return url;
|
||||
|
|
Loading…
Reference in a new issue