mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-01 03:25:51 +02:00
Fix can't preview some url
This commit is contained in:
@@ -45,7 +45,7 @@ export default Vue.extend({
|
||||
} else if (url.hostname == 'youtu.be') {
|
||||
this.youtubeId = url.pathname;
|
||||
} else {
|
||||
fetch('/url?url=' + this.url).then(res => {
|
||||
fetch('/url?url=' + encodeURIComponent(this.url)).then(res => {
|
||||
res.json().then(info => {
|
||||
this.title = info.title;
|
||||
this.description = info.description;
|
||||
|
||||
Reference in New Issue
Block a user