Fix community filtering. (#729)

This commit is contained in:
Dessalines 2022-07-29 23:37:20 -04:00 committed by GitHub
parent 4117d04196
commit 2afcdf0759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 9 deletions

View 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",

View 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),

View 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}

View file

@ -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"