parent
65a5373acb
commit
27c6ebebc0
5 changed files with 3 additions and 52 deletions
|
|
@ -9,5 +9,7 @@ module.exports = async (req: express.Request, res: express.Response) => {
|
|||
};
|
||||
|
||||
function wrap(url: string): string {
|
||||
return `${config.proxy_url}/${url}`;
|
||||
return url != null
|
||||
? `https://images.weserv.nl/?url=${url.replace(/^https?:\/\//, '')}`
|
||||
: null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue