From 1d15dd80a02d31cf2083d955cad431920056fd45 Mon Sep 17 00:00:00 2001 From: hitalin Date: Mon, 4 May 2026 18:48:31 +0900 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E3=83=AA=E3=83=8E=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=83=9F=E3=83=A5=E3=83=BC=E3=83=88=E3=81=A8=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AD=E3=83=AF=E3=83=BC=E8=A7=A3=E9=99=A4=E3=81=AE?= =?UTF-8?q?=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NoteDeck のユーザープロフィールメニューで Misskey 標準の関係操作を網羅するため、 以下の MisskeyClient メソッドを追加: - renote_mute_user / unrenote_mute_user → renote-mute/{create,delete} - invalidate_follower → following/invalidate 既存の mute_user / block_user / follow_user と同じパターン (空 Result 返却)。 --- src/api.rs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/api.rs b/src/api.rs index e301359..5e17ad7 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1084,6 +1084,17 @@ impl MisskeyClient { Ok(()) } + pub async fn invalidate_follower( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "following/invalidate", json!({ "userId": user_id })) + .await?; + Ok(()) + } + pub async fn accept_follow_request( &self, host: &str, @@ -1975,6 +1986,28 @@ impl MisskeyClient { Ok(()) } + pub async fn renote_mute_user( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "renote-mute/create", json!({ "userId": user_id })) + .await?; + Ok(()) + } + + pub async fn unrenote_mute_user( + &self, + host: &str, + token: &str, + user_id: &str, + ) -> Result<(), NoteDeckError> { + self.request(host, token, "renote-mute/delete", json!({ "userId": user_id })) + .await?; + Ok(()) + } + pub async fn block_user( &self, host: &str,