From ebef1ece7a174222f9432f4d834a206dda39a58b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 6 Mar 2021 23:38:26 -0600 Subject: [PATCH] Conservative rich media parsing --- app/soapbox/features/status/components/card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/status/components/card.js b/app/soapbox/features/status/components/card.js index 92ffa99fc..07cab0eba 100644 --- a/app/soapbox/features/status/components/card.js +++ b/app/soapbox/features/status/components/card.js @@ -150,7 +150,7 @@ export default class Card extends React.PureComponent { const cardWidth = card.get('width', card.getIn(['pleroma', 'opengraph', 'width'])); const cardHeight = card.get('height', card.getIn(['pleroma', 'opengraph', 'height'])); const provider = card.get('provider_name').length === 0 ? decodeIDNA(getHostname(card.get('url'))) : card.get('provider_name'); - const interactive = card.get('type') !== 'link' || card.getIn(['pleroma', 'opengraph', 'html']); + const interactive = card.get('type') !== 'link'; const horizontal = (!compact && cardWidth > cardHeight && (cardWidth + 100 >= width)) || interactive || embedded; const className = classnames('status-card', { horizontal, compact, interactive }); const title = interactive ? {card.get('title')} : {card.get('title')};