]> Untitled Git - lemmy-ui.git/commitdiff
Fixing saved_only
authorDessalines <tyhou13@gmx.com>
Tue, 23 Mar 2021 22:58:13 +0000 (18:58 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 23 Mar 2021 22:58:13 +0000 (18:58 -0400)
package.json
src/shared/components/community.tsx
src/shared/components/main.tsx
yarn.lock

index afe96b33ca36c598c95bca6ac095de3f1785a8c8..e0047a2dacd216178d7f498144190a0ff5a9ab24 100644 (file)
@@ -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",
index c9a70f4a93cf96868ff4c09bc71059430b140a51..bd603800b379d57791178e9c8cac2e0fecf27519 100644 (file)
@@ -191,6 +191,7 @@ export class Community extends Component<any, State> {
         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<any, State> {
         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<any, State> {
         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<any, State> {
         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));
index ba34ed47489a646b3f76cb30d9d13b08954b0406..4fcc56a5a861b8135b18fa5ab9750ef75d9c7341 100644 (file)
@@ -217,6 +217,7 @@ export class Main extends Component<any, MainState> {
         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<any, MainState> {
         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<any, MainState> {
         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<any, MainState> {
         limit: fetchLimit,
         sort: this.state.sort,
         type_: this.state.listingType,
+        saved_only: false,
         auth: authField(false),
       };
       WebSocketService.Instance.send(wsClient.getComments(getCommentsForm));
index 694628f2e36ffadcce23b7461466626850a5add6..6f8a42200fa9090b1a9fe844f89a9c6ebb5f949e 100644 (file)
--- 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"