HelloZeroNet / HelloZeroNet/ZeroNet
[patch] Make the site block check usable from other plugins and core modules
Open
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Please add an API to check if an address is blocked.
The patch adds method SiteManager.isAddressBlocked(), that can be overloaded by filter plugins to provide the actual implementation. It also adds the corresponding code to ContentFilterPlugin and moves a few lines from ContentFilterPlugin to ContentFilterStorage to avoid the code duplication.
[isAddressBlocked.txt](https://github.com/HelloZeroNet/ZeroNet/files/2827088/isAddressBlocked.txt)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.