From 6694826e7ca480ea042cb8e29207c9331858ab01 Mon Sep 17 00:00:00 2001 From: hitalin Date: Sat, 9 May 2026 18:58:31 +0900 Subject: [PATCH] =?UTF-8?q?feat(auth):=20MiAuth=20permissions=20=E3=82=92?= =?UTF-8?q?=20chat=20scope=20=E3=81=AB=E7=BD=AE=E6=8F=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Misskey v2025 (#15686) の `chat/*` エンドポイントは新スコープ `read:chat` / `write:chat` を要求する (例: chat/messages/create-to-user → write:chat, chat/history → read:chat)。 旧 `read:messaging` / `write:messaging` は legacy `messaging/*` 用で、 v2025 で対象 API が完全削除されたため新スコープに置換する。NoteDeck は β リリース段階で既存トークンの後方互換性を保つ必要は無い。 --- src/commands/auth.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/auth.rs b/src/commands/auth.rs index 9a7ecab..726e48d 100644 --- a/src/commands/auth.rs +++ b/src/commands/auth.rs @@ -61,8 +61,12 @@ pub async fn run_login( "write:favorites", "read:following", "write:following", - "read:messaging", - "write:messaging", + // Misskey v2025 (#15686) の chat/* endpoints (create-to-{user,room}, + // delete, react, unreact, history, ...) は kind: 'read:chat' / 'write:chat' + // を要求する。legacy messaging API は v2025 で完全削除済みなので + // `read:messaging` / `write:messaging` は併記しない。 + "read:chat", + "write:chat", "read:mutes", "write:mutes", "read:notes",