X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fpost%2Fpost-listing.tsx;h=a4ce5db54af50d8ac60a6b5289034b126087a557;hb=34f04e6758d53bfccbdda2cbb0adde21e9a0cffa;hp=bc853b37f846594aaf1c2f044a3034eb6799c118;hpb=50b1a395f151521fb222f495b2edbade3dcd4af3;p=lemmy-ui.git diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index bc853b3..a4ce5db 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -466,7 +466,7 @@ export class PostListing extends Component { return ( <>
-
+

{url && this.props.showBody ? ( { ) : ( this.postLink )} -

+ {/** - * 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 && (