feat(api): リノートミュートとフォロワー解除の MisskeyClient メソッド#7
Merged
Conversation
NoteDeck のユーザープロフィールメニューで Misskey 標準の関係操作を網羅するため、
以下の MisskeyClient メソッドを追加:
- renote_mute_user / unrenote_mute_user → renote-mute/{create,delete}
- invalidate_follower → following/invalidate
既存の mute_user / block_user / follow_user と同じパターン (空 Result 返却)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MisskeyClientに Misskey 標準の関係操作 3 メソッドを追加。renote_mute_user/unrenote_mute_user→renote-mute/{create,delete}invalidate_follower→following/invalidateWhy
NoteDeck 側のユーザープロフィールメニューを Misskey 本家相当(ミュート / リノートミュート / ブロック / フォロワー解除)に揃えたいが、notecli 側に対応エンドポイントが無く呼び出せなかった。
既存の
mute_user/block_user/follow_userと完全に同じパターン(空Result返却)で実装し、ステートレス HTTP ラッパーというMisskeyClientの責務に閉じる。Test plan
cargo build通過(warning なし)cargo test --libで 115 件 全 passFollow-up
commands/user.rsに Tauri ラッパーを追加 →UserProfileContent.vueのメニューを更新する続編 PR を出す予定