From 2657765d2a6804f34ce65bfdab7ec96f07d99732 Mon Sep 17 00:00:00 2001
From: ThibG <thib@sitedethib.com>
Date: Thu, 6 Jun 2019 13:04:34 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9Cmark=20as=20sensitive=E2=80=9D?=
 =?UTF-8?q?=20not=20being=20used=20in=20delete=20&=20redraft=20(#10980)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/javascript/mastodon/reducers/compose.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index 7082725910..29c6911440 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -338,6 +338,7 @@ export default function compose(state = initialState, action) {
       map.set('focusDate', new Date());
       map.set('caretPosition', null);
       map.set('idempotencyKey', uuid());
+      map.set('sensitive', action.status.get('sensitive'));
 
       if (action.status.get('spoiler_text').length > 0) {
         map.set('spoiler', true);
-- 
GitLab