mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Update url-preview.vue (#3602)
This commit is contained in:
parent
7645c212a3
commit
f3ee63fcbe
@ -170,6 +170,9 @@ export default Vue.extend({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (url.hostname === 'music.youtube.com')
|
||||||
|
url.hostname = 'youtube.com';
|
||||||
|
|
||||||
fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => {
|
fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => {
|
||||||
res.json().then(info => {
|
res.json().then(info => {
|
||||||
if (info.url == null) return;
|
if (info.url == null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user