Fixing saved_only

This commit is contained in:
Dessalines 2021-03-23 18:58:13 -04:00
parent 62a6e82e9b
commit a2d0aa8824
4 changed files with 13 additions and 5 deletions

View file

@ -67,7 +67,7 @@
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"husky": "^5.1.0", "husky": "^5.1.0",
"lemmy-js-client": "0.10.0-rc.9", "lemmy-js-client": "0.10.0-rc.10",
"lint-staged": "^10.5.4", "lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.3.8", "mini-css-extract-plugin": "^1.3.8",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",

View file

@ -191,6 +191,7 @@ export class Community extends Component<any, State> {
limit: fetchLimit, limit: fetchLimit,
sort, sort,
type_: ListingType.Community, type_: ListingType.Community,
saved_only: false,
}; };
setOptionalAuth(getPostsForm, req.auth); setOptionalAuth(getPostsForm, req.auth);
this.setIdOrName(getPostsForm, id, name_); this.setIdOrName(getPostsForm, id, name_);
@ -201,6 +202,7 @@ export class Community extends Component<any, State> {
limit: fetchLimit, limit: fetchLimit,
sort, sort,
type_: ListingType.Community, type_: ListingType.Community,
saved_only: false,
}; };
setOptionalAuth(getCommentsForm, req.auth); setOptionalAuth(getCommentsForm, req.auth);
this.setIdOrName(getCommentsForm, id, name_); this.setIdOrName(getCommentsForm, id, name_);
@ -409,6 +411,7 @@ export class Community extends Component<any, State> {
type_: ListingType.Community, type_: ListingType.Community,
community_id: this.state.communityId, community_id: this.state.communityId,
community_name: this.state.communityName, community_name: this.state.communityName,
saved_only: false,
auth: authField(false), auth: authField(false),
}; };
WebSocketService.Instance.send(wsClient.getPosts(form)); WebSocketService.Instance.send(wsClient.getPosts(form));
@ -420,6 +423,7 @@ export class Community extends Component<any, State> {
type_: ListingType.Community, type_: ListingType.Community,
community_id: this.state.communityId, community_id: this.state.communityId,
community_name: this.state.communityName, community_name: this.state.communityName,
saved_only: false,
auth: authField(false), auth: authField(false),
}; };
WebSocketService.Instance.send(wsClient.getComments(form)); WebSocketService.Instance.send(wsClient.getComments(form));

View file

@ -217,6 +217,7 @@ export class Main extends Component<any, MainState> {
limit: fetchLimit, limit: fetchLimit,
sort, sort,
type_, type_,
saved_only: false,
}; };
setOptionalAuth(getPostsForm, req.auth); setOptionalAuth(getPostsForm, req.auth);
promises.push(req.client.getPosts(getPostsForm)); promises.push(req.client.getPosts(getPostsForm));
@ -226,6 +227,7 @@ export class Main extends Component<any, MainState> {
limit: fetchLimit, limit: fetchLimit,
sort, sort,
type_, type_,
saved_only: false,
}; };
setOptionalAuth(getCommentsForm, req.auth); setOptionalAuth(getCommentsForm, req.auth);
promises.push(req.client.getComments(getCommentsForm)); promises.push(req.client.getComments(getCommentsForm));
@ -703,6 +705,7 @@ export class Main extends Component<any, MainState> {
limit: fetchLimit, limit: fetchLimit,
sort: this.state.sort, sort: this.state.sort,
type_: this.state.listingType, type_: this.state.listingType,
saved_only: false,
auth: authField(false), auth: authField(false),
}; };
WebSocketService.Instance.send(wsClient.getPosts(getPostsForm)); WebSocketService.Instance.send(wsClient.getPosts(getPostsForm));
@ -712,6 +715,7 @@ export class Main extends Component<any, MainState> {
limit: fetchLimit, limit: fetchLimit,
sort: this.state.sort, sort: this.state.sort,
type_: this.state.listingType, type_: this.state.listingType,
saved_only: false,
auth: authField(false), auth: authField(false),
}; };
WebSocketService.Instance.send(wsClient.getComments(getCommentsForm)); WebSocketService.Instance.send(wsClient.getComments(getCommentsForm));

View file

@ -5022,10 +5022,10 @@ lcid@^1.0.0:
dependencies: dependencies:
invert-kv "^1.0.0" invert-kv "^1.0.0"
lemmy-js-client@0.10.0-rc.9: lemmy-js-client@0.10.0-rc.10:
version "0.10.0-rc.9" version "0.10.0-rc.10"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.9.tgz#34d20541faffa12c45d9bed1d61d5695df1c497f" resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.10.tgz#36802f64191a10e8e70624e04d0cc98de465ae5a"
integrity sha512-ZowaY303QvfN8rBocVfGKQmnC2B7nfJgb5+GvzH85vrUO3hOroQCbGOZ0eXEWtX1c3/OuOI7sAaKkB4Urpa/HA== integrity sha512-WOAjHE0SgNbpq7pA56F3zJUI7pNdtdpdE/KViAjgfEHGW+yscu/nhLzYf/QA1QjI0ONeZc9U254xOnXzSs8XUw==
levn@^0.4.1: levn@^0.4.1:
version "0.4.1" version "0.4.1"