From ed7989cc2cf6e3b7c6cf109b3662fb6e2acf0ffc Mon Sep 17 00:00:00 2001 From: Sebastian Di Luzio Date: Wed, 21 Dec 2022 15:21:45 +0100 Subject: [PATCH] fix(#480): keep content warning when editing a status (#492) --- components/status/StatusActionsMore.vue | 2 +- composables/statusDrafts.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue index b9e207a3..c55214ce 100644 --- a/components/status/StatusActionsMore.vue +++ b/components/status/StatusActionsMore.vue @@ -85,7 +85,7 @@ async function editStatus() { openPublishDialog(`edit-${status.id}`, { ...await getDraftFromStatus(status), editingStatus: status, - }) + }, true) } diff --git a/composables/statusDrafts.ts b/composables/statusDrafts.ts index 041e96bf..85585d76 100644 --- a/composables/statusDrafts.ts +++ b/composables/statusDrafts.ts @@ -11,6 +11,8 @@ export function getDefaultDraft(options: Partial att.id), visibility: status.visibility, attachments: status.mediaAttachments, + sensitive: status.sensitive, + spoilerText: status.spoilerText, }) }