feat(api): muted_user_ids で mute/list を全ページ走査#16
Merged
Merged
Conversation
#574 (notedeck) で、起動時にフロントの mute store を hydrate して ミュート済みユーザーの過去ノートを即時非表示にするため、自分が ミュート中のユーザー ID 一覧を取得する muted_user_ids を追加。 mute/list を limit=100 で untilId ページングし muteeId を収集する。
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.
なぜ
NoteDeck の #574(ミュートユーザーの過去ノートを即時非表示)で、起動時にフロントの mute store を hydrate するために、自分がミュート中のユーザー ID 一覧を取得する手段が必要だった。
mute/create/mute/deleteはあるが一覧取得が無かった。何を
muted_user_ids(host, token) -> Vec<String>を追加。mute/listをlimit=100でuntilIdページングし、各 Muting レコードのmuteeIdを全ページ収集する。muted_user_ids_collects_mutee_ids)を追加。補足
id(mutee の id ではない)。api_get_muted_usersTauri command 経由で利用する。🤖 Generated with Claude Code