Properly handle blacklisted claims. #7665

Merged
Ruk33 merged 2 commits from 7663-support-hub-operated-dmcablocking into master 2022-08-09 17:19:23 +02:00
Ruk33 commented 2022-08-05 03:16:30 +02:00 (Migrated from github.com)

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/7663

What is the current behavior?

Blacklisted claims are not being handled properly.

What is the new behavior?

Blacklisted claims (those with errors.censor) will now be
marked as blacklisted properly.

Other information

PR Checklist

Toggle...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: https://github.com/lbryio/lbry-desktop/issues/7663 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? Blacklisted claims are not being handled properly. ## What is the new behavior? Blacklisted claims (those with `errors.censor`) will now be marked as blacklisted properly. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> <details><summary>Toggle...</summary> What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
jessopb (Migrated from github.com) reviewed 2022-08-05 18:46:04 +02:00
jessopb (Migrated from github.com) left a comment

This looks pretty good. Couple comments.

Also, please research selectBanStateForUri in extras/lbryinc and see if it needs to be updated.

This looks pretty good. Couple comments. Also, please research `selectBanStateForUri` in `extras/lbryinc` and see if it needs to be updated.
jessopb (Migrated from github.com) commented 2022-08-05 16:55:53 +02:00

Just need a way to differentiate between actual US DMCA and other reasons. Possibly if blocking channel name includes "DMCA"? This should not be the message for every blocking channel.
Examples of channels here
https://github.com/lbryio/hub/blob/master/docs/blocking.md#defaults

Just need a way to differentiate between actual US DMCA and other reasons. Possibly if blocking channel name includes "DMCA"? This should not be the message for every blocking channel. Examples of channels here https://github.com/lbryio/hub/blob/master/docs/blocking.md#defaults
jessopb (Migrated from github.com) commented 2022-08-05 18:41:07 +02:00

We hvae a few cases:

  1. it literally says DMCA in the channel name -> show DMCA text, but say "hub" did it - not "we" did it.
  2. the channel that blocks it has a description -> some way to show channel and description
  3. the channel that blocks it has no description. -> some way to show channel and generic text

I think this may need some way to display the channel that blocked (reposted) it, to resolve the channel that blocked it (possibly a claim preview component?) and display the description of the channel that blacked it.

We hvae a few cases: 1) it literally says DMCA in the channel name -> show DMCA text, but say "hub" did it - not "we" did it. 2) the channel that blocks it has a description -> some way to show channel and description 3) the channel that blocks it has no description. -> some way to show channel and generic text I think this may need some way to display the channel that blocked (reposted) it, to resolve the channel that blocked it (possibly a claim preview component?) and display the description of the channel that blacked it.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#7665
No description provided.