From 23afe742a979f508fc328a07e0c357c3a35962ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Wed, 18 Mar 2026 15:33:47 +0100 Subject: [PATCH] nicolium: fix disableUserProvidedMedia misses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/nicolium/src/components/media/media-gallery.tsx | 1 - packages/nicolium/src/components/preview-card.tsx | 5 +++-- packages/nicolium/src/components/scroll-top-button.tsx | 4 ++-- packages/nicolium/src/components/statuses/status-media.tsx | 6 +++--- packages/nicolium/src/components/timeline-picker.tsx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/nicolium/src/components/media/media-gallery.tsx b/packages/nicolium/src/components/media/media-gallery.tsx index cc7609600..88d933a89 100644 --- a/packages/nicolium/src/components/media/media-gallery.tsx +++ b/packages/nicolium/src/components/media/media-gallery.tsx @@ -412,7 +412,6 @@ const MediaGallery: React.FC = (props) => { }[attachment.type]} - // ))} ); diff --git a/packages/nicolium/src/components/preview-card.tsx b/packages/nicolium/src/components/preview-card.tsx index 9596515cb..b1db5b6e1 100644 --- a/packages/nicolium/src/components/preview-card.tsx +++ b/packages/nicolium/src/components/preview-card.tsx @@ -113,6 +113,7 @@ const PreviewCard: React.FC = ({ const intl = useIntl(); const { urlPrivacy: { clearLinksInContent, redirectLinksMode }, + disableUserProvidedMedia, } = useSettings(); const [width, setWidth] = useState(defaultWidth); const [embedded, setEmbedded] = useState(false); @@ -237,7 +238,7 @@ const PreviewCard: React.FC = ({ /> ); - if (interactive) { + if (interactive && !disableUserProvidedMedia) { if (embedded) { embed = ; } else { @@ -295,7 +296,7 @@ const PreviewCard: React.FC = ({ {description} ); - } else if (card.image) { + } else if (card.image && !disableUserProvidedMedia) { embed = (
= ({ accountIds, }) => { const intl = useIntl(); - const { autoloadTimelines } = useSettings(); + const { autoloadTimelines, disableUserProvidedMedia } = useSettings(); // Whether we are scrolled past the `threshold`. const [scrolled, setScrolled] = useState(false); @@ -105,7 +105,7 @@ const ScrollTopButton: React.FC = ({ aria-hidden={!visible} >