From 6861ee732105e02b9af4c8a9551844faa6d68eb8 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 11 Mar 2021 22:54:12 +0800
Subject: refactor: Improve base64.

---
 FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
index 6c428b74..025b41c0 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
@@ -168,13 +168,13 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => {
       case "text":
         requestData = {
           contentType: "text/plain",
-          data: await base64(new Blob([text])),
+          data: await base64(text),
         };
         break;
       case "markdown":
         requestData = {
           contentType: "text/markdown",
-          data: await base64(new Blob([markdown])),
+          data: await base64(markdown),
         };
         break;
       case "image":
-- 
cgit v1.2.3

