From 653094eddbda276f3ae9137d69e5e158e34b162b Mon Sep 17 00:00:00 2001 From: sunaurus Date: Sat, 1 Jul 2023 19:25:52 +0300 Subject: [PATCH 1/5] Fix DM replies --- src/shared/components/private_message/private-message.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/components/private_message/private-message.tsx b/src/shared/components/private_message/private-message.tsx index f91087a1..14270b64 100644 --- a/src/shared/components/private_message/private-message.tsx +++ b/src/shared/components/private_message/private-message.tsx @@ -284,7 +284,6 @@ export class PrivateMessage extends Component<
Date: Sun, 2 Jul 2023 02:04:44 +0300 Subject: [PATCH 2/5] Fix jwt cookie path --- src/shared/services/UserService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/services/UserService.ts b/src/shared/services/UserService.ts index 2bb6e16a..3757e236 100644 --- a/src/shared/services/UserService.ts +++ b/src/shared/services/UserService.ts @@ -38,6 +38,7 @@ export class UserService { secure: isHttps(), domain: location.hostname, sameSite: true, + path: "/", }); this.#setJwtInfo(); } From 17bcfe5257d4c94ea3218e946c3fd21033f836f8 Mon Sep 17 00:00:00 2001 From: Jeff Sandberg Date: Sun, 2 Jul 2023 04:11:09 -0600 Subject: [PATCH 3/5] Add metaKey to markdown-textarea, for macos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On MacOS, Ctrl is less commonly used than Command (⌘). Javascript expresses command as `metaKey`. This allows for _either_ Ctrl or Command to be used in the Markdown text area. Note that on Windows, on some browsers, the "windows" key is labeled as meta, so it would work on windows as well. http://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey --- src/shared/components/common/markdown-textarea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 5623ace5..29075b97 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -473,7 +473,7 @@ export class MarkdownTextArea extends Component< // Keybind handler // Keybinds inspired by github comment area handleKeyBinds(i: MarkdownTextArea, event: KeyboardEvent) { - if (event.ctrlKey) { + if (event.ctrlKey || event.metaKey) { switch (event.key) { case "k": { i.handleInsertLink(i, event); From 34f2b73063c26ea98e7d7685a49a552825f7259b Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 2 Jul 2023 11:02:53 -0400 Subject: [PATCH 4/5] fix: Fix thumb buttons having gray background #1754 --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 5c562a4a..462087f3 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -333,7 +333,7 @@ export class PostListing extends Component { return ( {showScores() ? (
{numToSI(this.props.counts.score)}