diff --git a/src/components/embed/embed.tsx b/src/components/embed/embed.tsx index 3885a89d..ce33fd2b 100644 --- a/src/components/embed/embed.tsx +++ b/src/components/embed/embed.tsx @@ -306,6 +306,11 @@ const canEmbedHosts = new Set([ ]); export const canEmbed = (parsedUrl: URL): boolean => { + if (redditHosts.has(parsedUrl.host)) { + // Reddit posts are not embeddable if the URL does not include '/comments/' + return parsedUrl.pathname.includes('/comments/'); + } + return canEmbedHosts.has(parsedUrl.host) || (parsedUrl.host.startsWith('yt.') && parsedUrl.searchParams.has('v')); };