mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[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
@ -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 New Issue
Block a user