diff --git a/CHANGELOG.md b/CHANGELOG.md index c01d284bdb..52da58612d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ - Enhance: サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように - Enhance: アイコンデコレーション管理画面にプレビューを追加 - Enhance: コントロールパネル内のファイル一覧でセンシティブなファイルを区別しやすく +- Enhance: どこで投稿フォームを開いてもお気に入りに登録したチャンネルにノートできるように +- Enhance: チャンネルのページを開いている間はデフォルトの公開範囲がそのチャンネルになるように - Fix: サーバーメトリクスが2つ以上あるとリロード直後の表示がおかしくなる問題を修正 - Fix: 月の違う同じ日はセパレータが表示されないのを修正 diff --git a/locales/index.d.ts b/locales/index.d.ts index fecc570395..f8f8c7a089 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -8543,6 +8543,18 @@ export interface Locale extends ILocale { * 指定したユーザーのみに公開 */ "specifiedDescription": string; + /** + * チャンネル + */ + "channel": string; + /** + * 選択したチャンネルに公開 + */ + "channelDescription": string; + /** + * 選択中:{name} + */ + "channelSelected": ParameterizedString<"name">; /** * 連合なし */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index a1210bad29..e1536af8b3 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2248,6 +2248,9 @@ _visibility: followersDescription: "自分のフォロワーのみに公開" specified: "ダイレクト" specifiedDescription: "指定したユーザーのみに公開" + channel: "チャンネル" + channelDescription: "選択したチャンネルに公開" + channelSelected: "選択中:{name}" disableFederation: "連合なし" disableFederationDescription: "他サーバーへの配信を行いません" diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index ddd47ca448..ac4b16858f 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -23,6 +23,7 @@ import { emojiPicker } from '@/scripts/emoji-picker.js'; import { mainRouter } from '@/router/main.js'; import { type Keymap, makeHotkey } from '@/scripts/hotkey.js'; import { addCustomEmoji, removeCustomEmojis, updateCustomEmojis } from '@/custom-emojis.js'; +import { postButtonHandler } from '@/scripts/post-button-handler.js'; export async function mainBoot() { const { isClientUpdated } = await common(() => createApp( @@ -346,7 +347,7 @@ export async function mainBoot() { const keymap = { 'p|n': () => { if ($i == null) return; - post(); + postButtonHandler(mainRouter.currentRef.value); }, 'd': () => { defaultStore.set('darkMode', !defaultStore.state.darkMode); diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 039393887d..d5e420d3be 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -19,21 +19,21 @@ SPDX-License-Identifier: AGPL-3.0-only
- + + +
-
+
{{ i18n.ts.recipient }}
@@ -66,8 +66,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.notSpecifiedMentionWarning }} - -
-
+