From e0cc7ba3c35994a490038d417686f1198cb58018 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 16 Jun 2023 17:06:14 -0400 Subject: [PATCH] Adding a few more 0.18.0 API changes. (#1324) - Removes number_online --- package.json | 2 +- src/shared/components/community/community.tsx | 1 - src/shared/components/community/sidebar.tsx | 7 ------- src/shared/components/home/home.tsx | 4 ---- src/shared/components/home/site-form.tsx | 1 - src/shared/components/home/site-sidebar.tsx | 8 -------- src/shared/components/post/post.tsx | 1 - yarn.lock | 8 ++++---- 8 files changed, 5 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 2298d9e..b7c48c7 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "inferno-server": "^8.1.1", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", - "lemmy-js-client": "0.17.2-rc.24", + "lemmy-js-client": "0.18.0-rc.1", "lodash": "^4.17.21", "markdown-it": "^13.0.1", "markdown-it-container": "^3.0.0", diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index 05fa55e..f2d7ad7 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -360,7 +360,6 @@ export class Community extends Component< community_view={res.community_view} moderators={res.moderators} admins={site_res.admins} - online={res.online} enableNsfw={enableNsfw(site_res)} editable allLanguages={site_res.all_languages} diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 57400f4..56b1ef2 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -39,7 +39,6 @@ interface SidebarProps { allLanguages: Language[]; siteLanguages: number[]; communityLanguages?: number[]; - online: number; enableNsfw?: boolean; showIcon?: boolean; editable?: boolean; @@ -237,12 +236,6 @@ export class Sidebar extends Component { const counts = community_view.counts; return (