diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-03 19:50:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-03 19:50:27 +0900 |
| commit | e893494b48669f9bac309f9824fe28cd6df194fd (patch) | |
| tree | 066efb5562775fa0f6a8f09cf656b8f398e16433 | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | sharkey-e893494b48669f9bac309f9824fe28cd6df194fd.tar.gz sharkey-e893494b48669f9bac309f9824fe28cd6df194fd.tar.bz2 sharkey-e893494b48669f9bac309f9824fe28cd6df194fd.zip | |
Revert "fix: URLプレビューが表示されないのを修正 (#12222)"
This reverts commit 8366984b2b81d0f13fb2c705ccf5cc5062bc7d4e.
| -rw-r--r-- | packages/frontend/src/components/MkUrlPreview.vue | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkUrlPreview.vue b/packages/frontend/src/components/MkUrlPreview.vue index e4a6a87c26..e2844f8fa1 100644 --- a/packages/frontend/src/components/MkUrlPreview.vue +++ b/packages/frontend/src/components/MkUrlPreview.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only :style="player.width ? `padding: ${(player.height || 0) / player.width * 100}% 0 0` : `padding: ${(player.height || 0)}px 0 0`" > <iframe - v-if="player.url?.startsWith('http://') || player.url?.startsWith('https://')" + v-if="player.url.startsWith('http://') || player.url.startsWith('https://')" sandbox="allow-popups allow-scripts allow-storage-access-by-user-activation allow-same-origin" scrolling="no" :allow="player.allow.join(';')" @@ -118,12 +118,11 @@ let description = $ref<string | null>(null); let thumbnail = $ref<string | null>(null); let icon = $ref<string | null>(null); let sitename = $ref<string | null>(null); -let player = $ref<SummalyResult['player']>({ +let player = $ref({ url: null, width: null, height: null, - allow: [], -}); +} as SummalyResult['player']); let playerEnabled = $ref(false); let tweetId = $ref<string | null>(null); let tweetExpanded = $ref(props.detail); |