From e3ce0a4c33555782e442a12f4e10a11bbc43e992 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Tue, 12 May 2026 13:03:37 -0400 Subject: [PATCH] [APP-2160] Dispatch PublicationEmbed from MediaEmbed when source present --- src/components/Post/Embed/index.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/Post/Embed/index.tsx b/src/components/Post/Embed/index.tsx index 0c3106c1b9..44c25e3fdc 100644 --- a/src/components/Post/Embed/index.tsx +++ b/src/components/Post/Embed/index.tsx @@ -32,6 +32,8 @@ import { parseEmbed, } from '#/types/bsky/post' import {ExternalEmbed} from './ExternalEmbed' +import {PublicationEmbed} from './ExternalEmbed/PublicationEmbed' +import {type PublicationViewExternal} from './ExternalEmbed/PublicationEmbed/types' import {ModeratedFeedEmbed} from './FeedEmbed' import {ImageEmbed} from './ImageEmbed' import {ModeratedListEmbed} from './ListEmbed' @@ -95,6 +97,21 @@ function MediaEmbed({ ) } case 'link': { + const external = embed.view.external as PublicationViewExternal + if (external.source) { + return ( + + + + ) + } return (