From 2afcdf07595f141f0c65b0a68a4f204d74969182 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 29 Jul 2022 23:37:20 -0400 Subject: [PATCH] Fix community filtering. (#729) --- package.json | 2 +- src/shared/components/community/community.tsx | 8 ++++---- src/shared/components/post/post-form.tsx | 1 + yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 9 deletions(-) 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 { 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 { 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 { 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 { 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 { {i18n.t("related_posts")}