From 779bd244a64e93a6d22dddf876f2611e7e4451ef Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Jan 2022 17:38:02 +0900 Subject: [PATCH 1/3] chore: fix instant form handling --- packages/client/src/components/post-form.vue | 4 ++-- packages/client/src/pages/about-misskey.vue | 1 + packages/client/src/pages/share.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index ed78c5a3f..2eda97e14 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -102,7 +102,7 @@ const props = withDefaults(defineProps<{ initialLocalOnly?: boolean; initialVisibleUsers?: misskey.entities.User[]; initialNote?: misskey.entities.Note; - share?: boolean; + instant?: boolean; fixed?: boolean; autofocus?: boolean; }>(), { @@ -641,7 +641,7 @@ onMounted(() => { nextTick(() => { // 書きかけの投稿を復元 - if (!props.share && !props.mention && !props.specified) { + if (!props.instant && !props.mention && !props.specified) { const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[draftKey]; if (draft) { text = draft.data.text; diff --git a/packages/client/src/pages/about-misskey.vue b/packages/client/src/pages/about-misskey.vue index 8119f3305..f887e29cc 100644 --- a/packages/client/src/pages/about-misskey.vue +++ b/packages/client/src/pages/about-misskey.vue @@ -182,6 +182,7 @@ function gravity() { function iLoveMisskey() { os.post({ initialText: 'I $[jelly ❤] #Misskey', + instant: true, }); } diff --git a/packages/client/src/pages/share.vue b/packages/client/src/pages/share.vue index 5df6256fb..4d77de581 100644 --- a/packages/client/src/pages/share.vue +++ b/packages/client/src/pages/share.vue @@ -5,7 +5,7 @@ Date: Thu, 27 Jan 2022 17:55:11 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix(client):=20=E3=83=81=E3=83=A3=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=8C=E8=A6=8B=E3=82=8C=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #8203 --- packages/client/src/pages/messaging/messaging-room.form.vue | 5 +++-- packages/client/src/pages/messaging/messaging-room.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/messaging/messaging-room.form.vue b/packages/client/src/pages/messaging/messaging-room.form.vue index 0fc7c8a5d..1b9421ca9 100644 --- a/packages/client/src/pages/messaging/messaging-room.form.vue +++ b/packages/client/src/pages/messaging/messaging-room.form.vue @@ -24,7 +24,7 @@