From 8c28fd3a1bce9a582c4fe2462a21269e9b92bbd7 Mon Sep 17 00:00:00 2001 From: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> Date: Mon, 20 Jul 2026 18:17:52 +0900 Subject: [PATCH] fix(frontend): use instant postform for createNoteFromTheFile/gallery/WidgetBirthday (#17746) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend): use instant postform for createNoteFromTheFile/gallery/WidgetBirthday * docs(changelog): update changelog --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> --- CHANGELOG.md | 1 + packages/frontend/src/pages/drive.file.info.vue | 1 + packages/frontend/src/pages/gallery/post.vue | 1 + packages/frontend/src/utility/get-drive-file-menu.ts | 1 + packages/frontend/src/widgets/WidgetBirthdayFollowings.user.vue | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 144b6515e9..9006b59759 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ - Fix: いくつかのイベントリスナーが正しく解除されない問題を修正(メモリ使用量の改善) - Fix: 非ログイン時トップページをスクロール操作できないことがある問題を修正 - Fix: ローカルユーザーへのホスト付きメンションが本文に含まれる指名ノートの作成時、投稿フォームにて、当該ユーザーが宛先に含まれていても正しく認識されない問題を修正 +- Fix: ドライブの「このファイルからノートを作成」やギャラリーの「ノートで共有」、誕生日ウィジェットからのノート作成において、通常投稿の下書きが表示される問題を修正 ### Server - Feat: OpenTelemetryサポート diff --git a/packages/frontend/src/pages/drive.file.info.vue b/packages/frontend/src/pages/drive.file.info.vue index 56296e91b8..dc86c0cb96 100644 --- a/packages/frontend/src/pages/drive.file.info.vue +++ b/packages/frontend/src/pages/drive.file.info.vue @@ -123,6 +123,7 @@ function postThis() { os.post({ initialFiles: [file.value], + instant: true, }); } diff --git a/packages/frontend/src/pages/gallery/post.vue b/packages/frontend/src/pages/gallery/post.vue index 92cb663ee1..6857614c4a 100644 --- a/packages/frontend/src/pages/gallery/post.vue +++ b/packages/frontend/src/pages/gallery/post.vue @@ -126,6 +126,7 @@ function shareWithNote() { if (!post.value) return; os.post({ initialText: `${post.value.title} ${url}/gallery/${post.value.id}`, + instant: true, }); } diff --git a/packages/frontend/src/utility/get-drive-file-menu.ts b/packages/frontend/src/utility/get-drive-file-menu.ts index 391af78e1f..9a746c01b5 100644 --- a/packages/frontend/src/utility/get-drive-file-menu.ts +++ b/packages/frontend/src/utility/get-drive-file-menu.ts @@ -131,6 +131,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss icon: 'ti ti-pencil', action: () => os.post({ initialFiles: [file], + instant: true, }), }, { text: i18n.ts.copyUrl, diff --git a/packages/frontend/src/widgets/WidgetBirthdayFollowings.user.vue b/packages/frontend/src/widgets/WidgetBirthdayFollowings.user.vue index 2b714c2f6c..80a7d7bdac 100644 --- a/packages/frontend/src/widgets/WidgetBirthdayFollowings.user.vue +++ b/packages/frontend/src/widgets/WidgetBirthdayFollowings.user.vue @@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only -