From 3b4a813ba0b673a3399ac353517605bb6e62cd9d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 19 Oct 2023 20:31:26 -0400 Subject: [PATCH] Updating for new lemmy-js-client. --- package.json | 2 +- src/shared/components/post/post-listing.tsx | 3 +-- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index df72ef86..0194059c 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "inferno-router": "^8.2.2", "inferno-server": "^8.2.2", "jwt-decode": "^3.1.2", - "lemmy-js-client": "0.19.0-alpha.13", + "lemmy-js-client": "0.19.0-rc.14", "lodash.isequal": "^4.5.0", "markdown-it": "^13.0.1", "markdown-it-bidi": "^0.1.0", diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d7335760..18356073 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1712,8 +1712,7 @@ export class PostListing extends Component { if (myAuth() && !i.props.post_view.read) { i.props.onMarkPostAsRead({ - post_id: i.props.post_view.post.id, - post_ids: [], + post_ids: [i.props.post_view.post.id], read: true, }); } diff --git a/yarn.lock b/yarn.lock index 20566b47..1009595b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6064,10 +6064,10 @@ leac@^0.6.0: resolved "https://registry.yarnpkg.com/leac/-/leac-0.6.0.tgz#dcf136e382e666bd2475f44a1096061b70dc0912" integrity sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg== -lemmy-js-client@0.19.0-alpha.13: - version "0.19.0-alpha.13" - resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.19.0-alpha.13.tgz#58fccefd436900624c8c7a04e478f810c08abff5" - integrity sha512-sRb7JiWuzH/InwGHfnH8Dv18626vsCKgOThYCOKMd6LqtKHJ6FhnTKrTEz110GZq1Kx8KxPeDU5XTIG6YSA05w== +lemmy-js-client@0.19.0-rc.14: + version "0.19.0-rc.14" + resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.19.0-rc.14.tgz#41885611c2d78e5cb6b01cf167d68205a471c215" + integrity sha512-U0KKFLrU0K+A7UlZr+k4olrXCXBxD+9cwMicu7L/wFyZ2aWHtGPaeO8V6mk6suv9vn2w2PWuimIIC+YICQ5xKg== dependencies: cross-fetch "^3.1.5" form-data "^4.0.0"