List own comments #7171

Merged
infinite-persistence merged 7 commits from ip/own.comments into master 2021-10-01 14:10:27 +02:00

7 commits

Author SHA1 Message Date
infinite-persistence
48247cb097
Use new param to remove sort-pins-first.
comment.List currently always pushes pins to the top to support pagination. This new param removes this behavior.
2021-10-01 16:14:12 +08:00
infinite-persistence
53ae7d0105
Implement own-comments page 2021-10-01 16:14:11 +08:00
infinite-persistence
69dbdce337
Comment: add option to hide the actions section 2021-10-01 15:51:08 +08:00
infinite-persistence
e068df89f9
Add doCommentListOwn -- command to fetch own comments
Since the redux slice is set up based on content or channel ID (for Channel Discussion page), re-use the channel ID for the case of "own comments". We always clear each ID when fetching page-0, so no worries of conflict when actually browsing the Channel Discussion page.
2021-10-01 15:51:07 +08:00
infinite-persistence
5e26926122
doCommentReset: change param from uri to claimId
This reduces one lookup as clients will always have the claimID ready, but might not have the full URI.

It was using URI previously just to match the other APIs.
2021-10-01 15:51:07 +08:00
infinite-persistence
99b742ac3e
comment.list: fix typos and renamed variables
- Switch from 'author' to 'creator' to disambiguate between comment author and content author. For comment author, we'll use 'commenter' from now on.
- Corrected 'commenterClaimId' to 'creatorClaimId' (just a typo, no functional change).
2021-10-01 15:51:06 +08:00
infinite-persistence
876ba507f0
Add option to pass in url-search params.
Impetus: allow linked comment ID and setting the discussion tab when clicking on the `ClaimPreview`.
2021-10-01 15:51:06 +08:00