mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-24 04:53:33 +00:00
Fix can't preview some url
This commit is contained in:
@@ -16,6 +16,6 @@ function wrap(url: string): string {
|
||||
return url != null
|
||||
? url.startsWith('https://')
|
||||
? url
|
||||
: `https://images.weserv.nl/?url=${url.replace(/^http:\/\//, '')}`
|
||||
: `https://images.weserv.nl/?url=${encodeURIComponent(url.replace(/^http:\/\//, ''))}`
|
||||
: null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user