lbryio / spee.ch

An image hosting service on top of the LBRY protocol.
https://spee.ch
MIT License
185 stars 78 forks source link

makes enhancements to dmca system #851

Closed jessopb closed 5 years ago

jessopb commented 5 years ago

Visiting a content page shows an AssetBlocked component. Visiting a component page still attempts to fetch() the file in order to elicit the 451 error. I didn't want to send a 451 on document because document generally doesn't reload during normal navigation, and the document hangs on to the status throughout browsing. (This is also an issue for the 404). Visiting a Channel page, until we redo pagination, Blocked content shows a customized 451 channel preview. Blocklist is now in memory in a javascript Set() though I noticed no speed gains compared to local DB. Blocklist Endpoint is now a configurable siteConfig.json -> details -> blockListEndpoint : "" parameter. LBRY's blocklist is still the default configuration if blockListEndpoint is missing or null.

Blocklist Set() updates from database every 60 seconds, in preparation for periodic database updates in the future. Some extraneous .then()s in promise chains removed. See slack channel for test url.

skhameneh commented 5 years ago

When you're ready, merge to master, cut to staging, and have us (including @tzarebczan) test this.