From c2fcf4183ce1c4f78097be032fdee2fc354b66d4 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 18 Aug 2025 16:51:16 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9CDelete=20&=20Redraft=E2=80=9D=20?= =?UTF-8?q?as=20well=20as=20=E2=80=9CEdit=E2=80=9D=20unexpectedly=20reseti?= =?UTF-8?q?ng=20quote=20policy=20(#35808)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/mastodon/reducers/compose.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index c5b3c22ec14..bb4d917cca5 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -512,6 +512,8 @@ export const composeReducer = (state = initialState, action) => { map.set('sensitive', action.status.get('sensitive')); map.set('language', action.status.get('language')); map.set('id', null); + // Mastodon-authored posts can be expected to have at most one automatic approval policy + map.set('quote_policy', action.status.getIn(['quote_approval', 'automatic', 0]) || 'nobody'); if (action.status.get('spoiler_text').length > 0) { map.set('spoiler', true); @@ -541,6 +543,8 @@ export const composeReducer = (state = initialState, action) => { map.set('idempotencyKey', uuid()); map.set('sensitive', action.status.get('sensitive')); map.set('language', action.status.get('language')); + // Mastodon-authored posts can be expected to have at most one automatic approval policy + map.set('quote_policy', action.status.getIn(['quote_approval', 'automatic', 0]) || 'nobody'); if (action.spoiler_text.length > 0) { map.set('spoiler', true);