projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a62d48
)
fix: Post expand button was not showing if body-only post
author
Jay Sitter
<jay@jaysitter.com>
Sun, 2 Jul 2023 15:23:42 +0000
(11:23 -0400)
committer
Jay Sitter
<jay@jaysitter.com>
Sun, 2 Jul 2023 15:23:42 +0000
(11:23 -0400)
src/shared/components/post/post-listing.tsx
patch
|
blob
|
history
diff --git
a/src/shared/components/post/post-listing.tsx
b/src/shared/components/post/post-listing.tsx
index 5c562a4a54ade85819dcfa48c5e5e151764aec1e..309d6cd70d3c0b832dbb347ac0b8bbec517df5ff 100644
(file)
--- a/
src/shared/components/post/post-listing.tsx
+++ b/
src/shared/components/post/post-listing.tsx
@@
-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 && (