Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wandrien opened this issue Feb 4, 2019 · 0 comments

Comments

@wandrien
Copy link
Contributor

wandrien commented Feb 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant