Merge branch 'main' into fix/fix-badges-spacing-componentize

This commit is contained in:
Jay Sitter 2023-07-02 19:47:41 -04:00 committed by GitHub
commit 4e1e29b9a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,12 +485,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</h5>
{/**
* If there is a URL, an embed title, and we were not told to show the
* body by the parent component, show the MetadataCard/body toggle.
* If there is (a) a URL and an embed title, or (b) a post body, and
* we were not told to show the body by the parent component, show the
* MetadataCard/body toggle.
*/}
{!this.props.showBody &&
post.url &&
post.embed_title &&
((post.url && post.embed_title) || post.body) &&
this.showPreviewButton()}
{post.removed && (