From: Dessalines Date: Tue, 23 Mar 2021 22:58:13 +0000 (-0400) Subject: Fixing saved_only X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=a2d0aa88247f2cd68fb29c120324a6c4c0521a36;p=lemmy-ui.git Fixing saved_only --- diff --git a/package.json b/package.json index afe96b3..e0047a2 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "eslint": "^7.20.0", "eslint-plugin-prettier": "^3.3.1", "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", "mini-css-extract-plugin": "^1.3.8", "node-fetch": "^2.6.1", diff --git a/src/shared/components/community.tsx b/src/shared/components/community.tsx index c9a70f4..bd60380 100644 --- a/src/shared/components/community.tsx +++ b/src/shared/components/community.tsx @@ -191,6 +191,7 @@ export class Community extends Component { limit: fetchLimit, sort, type_: ListingType.Community, + saved_only: false, }; setOptionalAuth(getPostsForm, req.auth); this.setIdOrName(getPostsForm, id, name_); @@ -201,6 +202,7 @@ export class Community extends Component { limit: fetchLimit, sort, type_: ListingType.Community, + saved_only: false, }; setOptionalAuth(getCommentsForm, req.auth); this.setIdOrName(getCommentsForm, id, name_); @@ -409,6 +411,7 @@ export class Community extends Component { type_: ListingType.Community, community_id: this.state.communityId, community_name: this.state.communityName, + saved_only: false, auth: authField(false), }; WebSocketService.Instance.send(wsClient.getPosts(form)); @@ -420,6 +423,7 @@ export class Community extends Component { type_: ListingType.Community, community_id: this.state.communityId, community_name: this.state.communityName, + saved_only: false, auth: authField(false), }; WebSocketService.Instance.send(wsClient.getComments(form)); diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index ba34ed4..4fcc56a 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -217,6 +217,7 @@ export class Main extends Component { limit: fetchLimit, sort, type_, + saved_only: false, }; setOptionalAuth(getPostsForm, req.auth); promises.push(req.client.getPosts(getPostsForm)); @@ -226,6 +227,7 @@ export class Main extends Component { limit: fetchLimit, sort, type_, + saved_only: false, }; setOptionalAuth(getCommentsForm, req.auth); promises.push(req.client.getComments(getCommentsForm)); @@ -703,6 +705,7 @@ export class Main extends Component { limit: fetchLimit, sort: this.state.sort, type_: this.state.listingType, + saved_only: false, auth: authField(false), }; WebSocketService.Instance.send(wsClient.getPosts(getPostsForm)); @@ -712,6 +715,7 @@ export class Main extends Component { limit: fetchLimit, sort: this.state.sort, type_: this.state.listingType, + saved_only: false, auth: authField(false), }; WebSocketService.Instance.send(wsClient.getComments(getCommentsForm)); diff --git a/yarn.lock b/yarn.lock index 694628f..6f8a422 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5022,10 +5022,10 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -lemmy-js-client@0.10.0-rc.9: - version "0.10.0-rc.9" - resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.9.tgz#34d20541faffa12c45d9bed1d61d5695df1c497f" - integrity sha512-ZowaY303QvfN8rBocVfGKQmnC2B7nfJgb5+GvzH85vrUO3hOroQCbGOZ0eXEWtX1c3/OuOI7sAaKkB4Urpa/HA== +lemmy-js-client@0.10.0-rc.10: + version "0.10.0-rc.10" + resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.10.tgz#36802f64191a10e8e70624e04d0cc98de465ae5a" + integrity sha512-WOAjHE0SgNbpq7pA56F3zJUI7pNdtdpdE/KViAjgfEHGW+yscu/nhLzYf/QA1QjI0ONeZc9U254xOnXzSs8XUw== levn@^0.4.1: version "0.4.1"