From: SleeplessOne1917 Date: Sun, 2 Jul 2023 23:23:08 +0000 (+0000) Subject: Merge pull request #1757 from jsit/fix/expand-button-when-no-link X-Git-Url: http://these/git/?a=commitdiff_plain;h=8e20d16f712af6bcabcdea160981d79b60756018;hp=ce1f979c363564d51d921ecdc367a8bb330b71d5;p=lemmy-ui.git Merge pull request #1757 from jsit/fix/expand-button-when-no-link fix: Post expand button was not showing if body-only post --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 462087f..654f92d 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -497,12 +497,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 && (