From: Jay Sitter Date: Sun, 2 Jul 2023 23:47:41 +0000 (-0400) Subject: Merge branch 'main' into fix/fix-badges-spacing-componentize X-Git-Url: http://these/git/?a=commitdiff_plain;h=4e1e29b9a59f9155cc5aea4271e26208e33d815d;hp=6cb49967c230a9dc33de7967710d5bc83d9b96b3;p=lemmy-ui.git Merge branch 'main' into fix/fix-badges-spacing-componentize --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index bc853b3..2900407 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -485,12 +485,12 @@ export class PostListing extends Component { {/** - * 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 && (