Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix channels list pagination #6679

Merged
merged 1 commit into from
Aug 30, 2020

Conversation

takonomura
Copy link
Contributor

Summary

トレンド/フォロー中/管理中のチャンネル数がそれぞれ6件以上になると同じ項目が2度以上出現する問題を修正しました。
原因はクライアント側ではページネーションをしようと limit と untilId をつけてリクエストしますが、サーバーがそれらを無視して全件レスポンスしていたためです。
トレンド (featured) は必ず10件までのためページネーションは必要無いと判断して無効化、フォロー中と管理中のチャンネルについては5件単位でページネーションされるようにしました。

@rinsuki rinsuki self-requested a review August 30, 2020 08:59
@rinsuki rinsuki requested a review from syuilo August 30, 2020 09:01
@syuilo syuilo merged commit d7df26d into misskey-dev:develop Aug 30, 2020
@syuilo
Copy link
Member

syuilo commented Aug 30, 2020

ありがとうございます🙏

@takonomura takonomura deleted the fix-channels-paging branch August 30, 2020 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants