HelloZeroNet / HelloZeroNet/ZeroNet

[patch] Make the site block check usable from other plugins and core modules

Open
#1,888 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.