From d0afde43acd6f6d0f4f837d72d2d29696e4b061d Mon Sep 17 00:00:00 2001 From: Trash Panda Date: Sun, 1 Mar 2026 20:01:18 -0700 Subject: [PATCH 1/3] Add support for audio and video previews in URL previews and reuse attachment components Signed-off-by: Trash Panda --- src/app/components/url-preview/UrlPreview.tsx | 5 +- .../url-preview/UrlPreviewCard.css.tsx | 11 +++- .../components/url-preview/UrlPreviewCard.tsx | 55 ++++++++++++++----- 3 files changed, 51 insertions(+), 20 deletions(-) diff --git a/src/app/components/url-preview/UrlPreview.tsx b/src/app/components/url-preview/UrlPreview.tsx index ae970b0e..d27aa33d 100644 --- a/src/app/components/url-preview/UrlPreview.tsx +++ b/src/app/components/url-preview/UrlPreview.tsx @@ -6,13 +6,10 @@ export const UrlPreview = as<'div'>(({ className, ...props }, ref) => ( )); -export const UrlPreviewImg = as<'img'>(({ className, alt, ...props }, ref) => ( - {alt} -)); - export const UrlPreviewContent = as<'div'>(({ className, ...props }, ref) => ( - {imgUrl && ( - + {(prev['og:video'] && ( + ); }; From 51072d2b72acd6e40cbf260ca1996c3ab5fc98c3 Mon Sep 17 00:00:00 2001 From: Trash Panda Date: Fri, 6 Mar 2026 07:41:31 -0700 Subject: [PATCH 2/3] Document changes --- ...eviews_in_url_previews_and_reuse_attachment_components.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md diff --git a/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md b/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md new file mode 100644 index 00000000..ae79ae01 --- /dev/null +++ b/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md @@ -0,0 +1,5 @@ +--- +sable: minor +--- + +Add support for audio and video in URL previews From f17993372137d3da0276b59461ab6afe7e79db6c Mon Sep 17 00:00:00 2001 From: 7w1 Date: Fri, 6 Mar 2026 12:35:18 -0600 Subject: [PATCH 3/3] update change set to mention homeserver requirement --- ..._previews_in_url_previews_and_reuse_attachment_components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md b/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md index ae79ae01..f176d8de 100644 --- a/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md +++ b/.changeset/add_support_for_audio_and_video_previews_in_url_previews_and_reuse_attachment_components.md @@ -2,4 +2,4 @@ sable: minor --- -Add support for audio and video in URL previews +Add support for audio and video in URL previews if homeserver provides it.