From 779bd244a64e93a6d22dddf876f2611e7e4451ef Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Jan 2022 17:38:02 +0900 Subject: [PATCH] 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 @@