From: Dessalines <dessalines@users.noreply.github.com>
Date: Sat, 30 Jul 2022 03:37:20 +0000 (-0400)
Subject: Fix community filtering. (#729)
X-Git-Url: http://these/git/%22https:/join-lemmy.org/static/sneer-club-logo.svg?a=commitdiff_plain;h=2afcdf07595f141f0c65b0a68a4f204d74969182;p=lemmy-ui.git

Fix community filtering. (#729)
---

diff --git a/package.json b/package.json
index f1e4d23..f9edd40 100644
--- a/package.json
+++ b/package.json
@@ -77,7 +77,7 @@
     "eslint-plugin-prettier": "^4.0.0",
     "husky": "^7.0.4",
     "import-sort-style-module": "^6.0.0",
-    "lemmy-js-client": "0.17.0-rc.33",
+    "lemmy-js-client": "0.17.0-rc.38",
     "lint-staged": "^12.4.1",
     "mini-css-extract-plugin": "^2.6.0",
     "node-fetch": "^2.6.1",
diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx
index 29e3a97..7272811 100644
--- a/src/shared/components/community/community.tsx
+++ b/src/shared/components/community/community.tsx
@@ -219,7 +219,7 @@ export class Community extends Component<any, State> {
         page,
         limit: Some(fetchLimit),
         sort,
-        type_: Some(ListingType.Community),
+        type_: Some(ListingType.All),
         saved_only: Some(false),
         auth: req.auth,
       });
@@ -232,7 +232,7 @@ export class Community extends Component<any, State> {
         page,
         limit: Some(fetchLimit),
         sort,
-        type_: Some(ListingType.Community),
+        type_: Some(ListingType.All),
         saved_only: Some(false),
         auth: req.auth,
       });
@@ -486,7 +486,7 @@ export class Community extends Component<any, State> {
         page: Some(this.state.page),
         limit: Some(fetchLimit),
         sort: Some(this.state.sort),
-        type_: Some(ListingType.Community),
+        type_: Some(ListingType.All),
         community_name: Some(this.state.communityName),
         community_id: None,
         saved_only: Some(false),
@@ -498,7 +498,7 @@ export class Community extends Component<any, State> {
         page: Some(this.state.page),
         limit: Some(fetchLimit),
         sort: Some(this.state.sort),
-        type_: Some(ListingType.Community),
+        type_: Some(ListingType.All),
         community_name: Some(this.state.communityName),
         community_id: None,
         saved_only: Some(false),
diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx
index 1bb7840..4adab8f 100644
--- a/src/shared/components/post/post-form.tsx
+++ b/src/shared/components/post/post-form.tsx
@@ -314,6 +314,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
                         {i18n.t("related_posts")}
                       </div>
                       <PostListings
+                        showCommunity
                         posts={sPosts}
                         enableDownvotes={this.props.enableDownvotes}
                         enableNsfw={this.props.enableNsfw}
diff --git a/yarn.lock b/yarn.lock
index 92080fe..d2cbbe4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4948,10 +4948,10 @@ lcid@^1.0.0:
   dependencies:
     invert-kv "^1.0.0"
 
-lemmy-js-client@0.17.0-rc.33:
-  version "0.17.0-rc.33"
-  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.17.0-rc.33.tgz#e05cc88213da3c0c21c7ea53c29054041d619150"
-  integrity sha512-rG0yCc9AAc5/B+muDfWB7bKizBG7r/xSzHeEw5ms50xF4dN+KOqvRcHTf0+15uAYehBF5B54nyxdlKPRKL9GxQ==
+lemmy-js-client@0.17.0-rc.38:
+  version "0.17.0-rc.38"
+  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.17.0-rc.38.tgz#bbe0667ad44bbd0c1e516813d3c81b65c7f6a329"
+  integrity sha512-uDC19s3+Eva+Hu3LhIPkT5j0Ngh7F84TA4VnfxMVJN6BQZFLZUmTvAErwJcqyj5vz3sNnw4jsEeTSGPODSXfeg==
 
 levn@^0.4.1:
   version "0.4.1"