From: Dessalines Date: Sat, 30 Jul 2022 03:37:20 +0000 (-0400) Subject: Fix community filtering. (#729) X-Git-Url: http://these/git/%22https:/nerdica.net/%22%7B%7D/%7Burl%7D?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 { 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")}