HelloZeroNet / HelloZeroNet/ZeroNet
[patch] Make the site block check usable from other plugins and core modules
Aperta
- Lingua principale
- JavaScript
- Stelle
- 18.8k
- Fork
- 2.3k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.