fix: show videos in iframes, close #222
This commit is contained in:
1 parent
d75fcb328f
commit
0557b520ef
4 files changed
+40
-17
No files matched your search
@@ -5,6 +5,7 @@
|
||||
bestImageURL,
|
||||
postLink,
|
||||
type MediaType,
|
||||
iframeType,
|
||||
} from '$lib/components/lemmy/post/helpers.js'
|
||||
import ExpandableImage from '$lib/components/ui/ExpandableImage.svelte'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
@@ -95,7 +96,7 @@
|
||||
{:else if type == 'iframe' && (view == 'cozy' || view == 'card') && post.url}
|
||||
<PostIframe
|
||||
thumbnail={post.thumbnail_url}
|
||||
type="youtube"
|
||||
type={iframeType(post)}
|
||||
url={post.url}
|
||||
{opened}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user