From ca98107eeeb2ea4a498693caff8a725cf8333b40 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Sat, 5 Oct 2024 18:25:13 -0400 Subject: [PATCH 1/2] respect following privacy settings --- .../frontend/src/components/MkPostForm.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index dc3f3aa94c..e2aeda7a94 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -630,11 +630,21 @@ async function onPaste(ev: ClipboardEvent) { if (paste.length > 1000) { ev.preventDefault(); - os.confirm({ - type: 'info', + os.actions({ + type: 'question', text: i18n.ts.attachAsFileQuestion, - }).then(({ canceled }) => { - if (canceled) { + actions: [ + { + value: 'yes', + text: i18n.ts.yes, + }, + { + value: 'no', + text: i18n.ts.no, + }, + ], + }).then(({ result }) => { + if (result !== 'yes') { insertTextAtCursor(textareaEl.value, paste); return; } From c63599261603b6c4619a9d31ba89006115140e88 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Sat, 5 Oct 2024 18:47:50 -0400 Subject: [PATCH 2/2] restore primary highlighting --- packages/frontend/src/components/MkPostForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index e2aeda7a94..add5296f0a 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -637,6 +637,7 @@ async function onPaste(ev: ClipboardEvent) { { value: 'yes', text: i18n.ts.yes, + primary: true, }, { value: 'no',