Merge branch 'main' into fix/h1-page-titles
authorJay Sitter <jsit@users.noreply.github.com>
Sun, 2 Jul 2023 23:54:03 +0000 (19:54 -0400)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 23:54:03 +0000 (19:54 -0400)
1  2 
src/shared/components/community/sidebar.tsx
src/shared/components/home/emojis-form.tsx
src/shared/components/home/site-form.tsx
src/shared/components/post/post-listing.tsx

index 8e792ec6bc5bbcf39a8664133837e325b9878d64,654f92dceb05518eb7315195965f1f24aa3794de..3f55cebdccfeb5e2bf18cb9f2cb9e8faa03a6a14
@@@ -494,15 -494,15 +494,15 @@@ export class PostListing extends Compon
              ) : (
                this.postLink
              )}
 -          </h5>
 +          </h1>
  
            {/**
-            * 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 && (