Browse Source

#130

feature/130
みてるぞ 14 hours ago
parent
commit
71eea05c8e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frontend/src/components/PostEmbed.tsx

+ 2
- 0
frontend/src/components/PostEmbed.tsx View File

@@ -26,6 +26,7 @@ export default (({ post }: Props) => {


return <NicoViewer id={videoId} width={640} height={360}/> return <NicoViewer id={videoId} width={640} height={360}/>
} }

case 'twitter.com': case 'twitter.com':
case 'x.com': case 'x.com':
{ {
@@ -39,6 +40,7 @@ export default (({ post }: Props) => {


return <TwitterEmbed userId={userId} statusId={statusId}/> return <TwitterEmbed userId={userId} statusId={statusId}/>
} }

case 'youtube.com': case 'youtube.com':
{ {
const videoId = url.searchParams.get ('v') const videoId = url.searchParams.get ('v')


Loading…
Cancel
Save