]> Untitled Git - lemmy-ui.git/commitdiff
fix: Post expand button was not showing if body-only post
authorJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:23:42 +0000 (11:23 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:23:42 +0000 (11:23 -0400)
src/shared/components/post/post-listing.tsx

index 5c562a4a54ade85819dcfa48c5e5e151764aec1e..309d6cd70d3c0b832dbb347ac0b8bbec517df5ff 100644 (file)
@@ -501,8 +501,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
            * 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 && (