diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-09 05:17:28 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-09 05:17:28 +0200 |
| commit | 42556800d103ede20b4e97f2d91d20bbc0000c1e (patch) | |
| tree | 1a392221995f4e8092bd20fb3acdd95a28c1d1f1 /packages/meshbay-hub/src/meshbay_hub/app.py | |
| parent | 1734c668406c66e2be63e0c6999b4b2af2f60808 (diff) | |
| download | meshbay-42556800d103ede20b4e97f2d91d20bbc0000c1e.tar.gz | |
feat(hub): add moderation — content blocklist + reports — 5.9
DB: ContentReport + ContentBlocklist tables.
POST /v1/reports: public endpoint, auto-blocks after 2 reports.
GET /v1/blocklist/check: node sync check before serving public content.
GET /v1/blocklist: full list for node startup sync.
GET|POST|DELETE /v1/admin/blocklist: admin management.
6/6 tests. Full suite: 59/59.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/app.py')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/app.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/app.py b/packages/meshbay-hub/src/meshbay_hub/app.py index 0254d08..5b01e80 100644 --- a/packages/meshbay-hub/src/meshbay_hub/app.py +++ b/packages/meshbay-hub/src/meshbay_hub/app.py @@ -24,7 +24,8 @@ from meshbay_hub.api.hub import router as hub_router from meshbay_hub.api.users import router as users_router, set_config as users_set_config from meshbay_hub.api.nodes import router as nodes_router from meshbay_hub.api.groups import router as groups_router -from meshbay_hub.api.revocation import router as revocation_router +from meshbay_hub.api.revocation import router as revocation_router +from meshbay_hub.api.moderation import router as moderation_router from meshbay_hub.api.webapp import router as webapp_router from meshbay_hub.api.middleware import limiter @@ -67,6 +68,7 @@ def create_app(cfg: HubConfig | None = None) -> FastAPI: app.include_router(nodes_router) app.include_router(groups_router) app.include_router(revocation_router) + app.include_router(moderation_router) app.include_router(webapp_router) return app |