]> Untitled Git - lemmy-ui.git/commitdiff
Fix community filtering. (#729)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 30 Jul 2022 03:37:20 +0000 (23:37 -0400)
committerGitHub <noreply@github.com>
Sat, 30 Jul 2022 03:37:20 +0000 (23:37 -0400)
package.json
src/shared/components/community/community.tsx
src/shared/components/post/post-form.tsx
yarn.lock

index f1e4d23d56c3207e66a0a994accf42970f312a79..f9edd403af2d7e6c195f8e47cf789ab085484db9 100644 (file)
@@ -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",
index 29e3a97d76d37d3c5381bf3d3770b03220cf01db..72728110cea92dc1302b8e62c27476b8fdbf25fa 100644 (file)
@@ -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),
index 1bb78407fa50c18dedbfb00018902ec0a4be9887..4adab8f16425f9817bf6e862e4deaf53b498a328 100644 (file)
@@ -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}
index 92080feeeddfab691d8927ac673154dc832326bd..d2cbbe4f2467244701d520307f393d9df4e46598 100644 (file)
--- 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"