From 22a4fae0c2ffe51330484892f13376a46cf9c89c Mon Sep 17 00:00:00 2001 From: 0xDEADCADE <69792955+0xDEADCADE@users.noreply.github.com> Date: Thu, 8 Jun 2023 15:15:03 +0000 Subject: [PATCH 1/3] Fix isoData can contain user generated content (#1114) * Fix isoData can contain user generated content * Fix formatting --- src/server/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index e220cd6e..f96901b9 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -25,6 +25,7 @@ import { favIconUrl, initializeSite, isAuthPath, + md, } from "../shared/utils"; const server = express(); @@ -347,7 +348,9 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) { - + From 7dfda39db05934874fdc30b84e8e355a9495e639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Mro=CC=81z?= Date: Thu, 8 Jun 2023 20:48:32 +0200 Subject: [PATCH 2/3] fix(#1067): Fix language not updating when editing post --- src/shared/components/post/post-form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 9f43d69b..ae69a98c 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -18,9 +18,9 @@ import { i18n } from "../../i18next"; import { PostFormParams } from "../../interfaces"; import { UserService, WebSocketService } from "../../services"; import { - Choice, archiveTodayUrl, capitalizeFirstLetter, + Choice, communityToChoice, debounce, fetchCommunities, @@ -460,7 +460,7 @@ export class PostForm extends Component { body: pForm.body, nsfw: pForm.nsfw, post_id: pv.post.id, - language_id: pv.post.language_id, + language_id: pForm.language_id, auth, }; WebSocketService.Instance.send(wsClient.editPost(form)); From 7366846849150efdae6f85ccc77fceb41eea826e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Mro=CC=81z?= Date: Thu, 8 Jun 2023 21:08:28 +0200 Subject: [PATCH 3/3] styles(#1067): Run prettier --- src/shared/components/post/post-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index ae69a98c..9174000f 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -18,9 +18,9 @@ import { i18n } from "../../i18next"; import { PostFormParams } from "../../interfaces"; import { UserService, WebSocketService } from "../../services"; import { + Choice, archiveTodayUrl, capitalizeFirstLetter, - Choice, communityToChoice, debounce, fetchCommunities,