From 5d77b115f9379f7b549bba4136f395c23ff7c27e Mon Sep 17 00:00:00 2001
From: jessopb <36554050+jessopb@users.noreply.github.com>
Date: Thu, 3 Nov 2022 15:55:46 -0400
Subject: [PATCH 1/2] fix thumbnails disabling publish (#7714)
---
ui/component/publishForm/view.jsx | 1 -
ui/component/selectThumbnail/view.jsx | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx
index 7a180b98c..4081f1168 100644
--- a/ui/component/publishForm/view.jsx
+++ b/ui/component/publishForm/view.jsx
@@ -208,7 +208,6 @@ function PublishForm(props: Props) {
isNameValid(name) &&
title &&
bid &&
- thumbnail &&
!bidError &&
!emptyPostError &&
!(thumbnailError && !thumbnailUploaded) &&
diff --git a/ui/component/selectThumbnail/view.jsx b/ui/component/selectThumbnail/view.jsx
index 06b685269..2076c416c 100644
--- a/ui/component/selectThumbnail/view.jsx
+++ b/ui/component/selectThumbnail/view.jsx
@@ -106,7 +106,7 @@ function SelectThumbnail(props: Props) {
__('This will be visible in a few minutes after you submit this form.')}
{
if (updateThumbnailParams) {
--
2.45.2
From d0843b01b097b1c6a6c663babe8c070fdc74966e Mon Sep 17 00:00:00 2001
From: zeppi
Date: Thu, 3 Nov 2022 17:15:40 -0400
Subject: [PATCH 2/2] fix post publish erased when confirmation
---
ui/component/publishFile/view.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx
index 0eafc2641..50a47b2c5 100644
--- a/ui/component/publishFile/view.jsx
+++ b/ui/component/publishFile/view.jsx
@@ -242,7 +242,7 @@ function PublishFile(props: Props) {
if (contentType && contentType[0] === 'text') {
isTextPost = contentType[1] === 'plain' || contentType[1] === 'markdown';
- setCurrentFileType(contentType);
+ setCurrentFileType(contentType.join('/'));
} else if (file.name) {
// If user's machine is missing a valid content type registration
// for markdown content: text/markdown, file extension will be used instead
--
2.45.2