HelloZeroNet / HelloZeroNet/ZeroNet
[patch] Make the site block check usable from other plugins and core modules
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
添付されたパッチ isAddressBlocked.txt から始め、SiteManager.isAddressBlocked() を ContentFilterPlugin と ContentFilterStorage まで追跡してください。既存のコンテンツフィルターのチェックがどのように共有されているかを確認し、そのうえで、プラグインとコアモジュールがロジックを重複させずに新しい API を呼び出せることを検証してください。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100