From c4d0a06f9e3291556a49a3b91640716b8ad2582e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 02:43:26 +0000 Subject: [PATCH 1/3] Update pnpm to v9.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 85c05e5f..0eb34115 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "sortpack" ] }, - "packageManager": "pnpm@9.5.0", + "packageManager": "pnpm@9.6.0", "engineStrict": true, "importSort": { ".js, .jsx, .ts, .tsx": { From cd15d3c1329582a15f351435d44ecab209feb35d Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:29:26 +0000 Subject: [PATCH 2/3] Fix wonky comment action icon button alignment (#2622) --- src/shared/components/comment/comment-node.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index eb644363..76d4fe37 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -294,7 +294,7 @@ export class CommentNode extends Component { /> )} -
+
{this.props.showContext && this.getLinkButton()} {this.props.markable && (
diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 1d8b3b0d..f9261347 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -878,7 +878,7 @@ export class PostListing extends Component { } get crossPostParams(): CrossPostParams { - const { name, url } = this.postView.post; + const { name, url, alt_text, nsfw, language_id } = this.postView.post; const crossPostParams: CrossPostParams = { name }; if (url) { @@ -890,6 +890,18 @@ export class PostListing extends Component { crossPostParams.body = crossPostBody; } + if (alt_text) { + crossPostParams.altText = alt_text; + } + + if (nsfw) { + crossPostParams.nsfw = nsfw ? "true" : "false"; + } + + if (language_id !== undefined) { + crossPostParams.languageId = language_id; + } + return crossPostParams; } diff --git a/src/shared/utils/types/cross-post-params.ts b/src/shared/utils/types/cross-post-params.ts index 9eb29b70..e63e5c1a 100644 --- a/src/shared/utils/types/cross-post-params.ts +++ b/src/shared/utils/types/cross-post-params.ts @@ -1,5 +1,10 @@ +import StringBoolean from "./string-boolean"; + export default interface CrossPostParams { name: string; url?: string; body?: string; + altText?: string; + nsfw?: StringBoolean; + languageId?: number; }