Skip to content

Commit

Permalink
(chore) Upgrade lemmy-js-client
Browse files Browse the repository at this point in the history
Related: #1683
  • Loading branch information
aeharding committed Nov 9, 2024
1 parent 819ae45 commit a1e5c12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"es-toolkit": "^1.26.1",
"history": "^4.10.1",
"ionicons": "^7.4.0",
"lemmy-js-client": "0.20.0-alpha.17",
"lemmy-js-client": "0.20.0-alpha.18",
"mdast-util-gfm-autolink-literal-lemmy": "^3.0.0",
"mdast-util-gfm-strikethrough": "^2.0.0",
"mdast-util-gfm-table": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/features/auth/siteSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const isAdminSelector = (state: RootState) =>
state.site.response?.my_user?.local_user_view.local_user.admin;

export const isDownvoteEnabledSelector = (state: RootState) =>
state.site.response?.site_view.local_site.enable_downvotes !== false;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO required changes for lemmy v0.20.0 https://github.com/aeharding/voyager/issues/1683
(state.site.response?.site_view.local_site as any).enable_downvotes !== false;

export const localUserSelector = (state: RootState) =>
state.site.response?.my_user?.local_user_view.local_user;
Expand Down

0 comments on commit a1e5c12

Please sign in to comment.