This commit is contained in:
Lachlan Kermode
2022-03-10 07:20:48 -05:00
parent 330a7c56d0
commit 86fcd1a942
12 changed files with 54 additions and 34 deletions

View File

@@ -75,7 +75,19 @@ const Media = ({ src, title }) => {
</div>
);
default:
return null;
if (src === "HIDDEN") {
return (
<div className="card-cell media source-hidden">
<h4>
Source hidden
<br />
Privacy concerns
</h4>
</div>
);
} else {
return null;
}
}
};

View File

@@ -87,6 +87,7 @@ class TelegramEmbed extends Component {
return (
<div data-sharing-id={container} style={containerStyles}>
<iframe
title={src}
ref={(node) => (this.iFrame = node)}
src={src + "?embed=1"}
height={height}