Hide comments based on own blocklist #6878
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#6878
Loading…
Reference in a new issue
No description provided.
Delete branch "ip/hide.blocked.comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comments: include Commentron blocklists when filtering
Issue
Change
In addition to the blacklist, filter-list and muted-list, we now include the Commentron blocklists (personal, admin, moderator) when filtering out comments.
Specifics
makeSelectCommentsForUri
,makeSelectTopLevelCommentsForUri
andmakeSelectRepliesForParentId
all perform the same filtering code. Factor that out tomakeSelectFilteredComments
and add the Commentron lists into the mix.Downsides
This probably adds to the already-high CPU usage in rendering comments.
Comments: simplify blocked replies display
Issue
Previously, we decide when to display "Show More" based on the current fetched reply count vs. total replies in Commentron. It was already troublesome as
comment.List
andcomment.replies
give different values (one includes blocked content, while another does not).Now, we are further filtering the list with Commentron blocklists (personal, admin, moderator), so it is not feasible to run the logic based on reply count.
Solution
Thanks! Will give this a test, but agreed, let's not merge til next week.
This was super buggy on kp.odysee.com
We found out it was due to the sidebar resolving a large Following -- also present in current production._
53a9d34 to e33e8d1