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} >