Skip to content

Load more of a user's comments when scrolling - #1408

Open
Nafeij wants to merge 1 commit into
QuantumBadger:masterfrom
Nafeij:user_comment_paging
Open

Nafeij wants to merge 1 commit into
QuantumBadger:masterfrom
Nafeij:user_comment_paging

Conversation

@Nafeij

@Nafeij Nafeij commented Nov 17, 2026

Copy link
Copy Markdown

User comment listings (e.g. "My Profile" -> "Comments") only ever showed Reddit's first page of 25 comments. The after value in the listing was parsed but never used.

  • CommentListingRequest passes the listing's after to its listener (null for a post's comments, which use "load more" items instead)
  • CommentListingFragment requests the next page when within 20 items of the end of the list, as PostListingFragment does. Only for user comment listings.
  • Later pages don't change the activity's session, matching the post list
  • The "no comments" view and bottom padding are only added after the last page
  • Changelog entry

Note: comments, like posts, can only be browsed up to Reddit's limit of ~1000 items.

Fixes #561, fixes #836, fixes #1069.

Previously only the first page of 25 comments was shown. The next page is
now requested using the listing's "after" value, as for posts.

Fixes QuantumBadger#561, fixes QuantumBadger#836

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Nafeij
Nafeij marked this pull request as ready for review November 17, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant