fix: Post expand button was not showing if body-only post

This commit is contained in:
Jay Sitter 2023-07-02 11:23:42 -04:00
parent 6a62d48257
commit 195e258a51

View 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 && (