]> Untitled Git - lemmy-ui.git/commitdiff
fix: Update comment to reflect new logic
authorJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:26:44 +0000 (11:26 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:26:44 +0000 (11:26 -0400)
src/shared/components/post/post-listing.tsx

index 309d6cd70d3c0b832dbb347ac0b8bbec517df5ff..efa4ed2144b959cfa2638635972b23f4c7435096 100644 (file)
@@ -497,8 +497,9 @@ 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.body) &&