ActivityPub discovery endpoints (phase 1, step 3)
Registered only when federation is enabled: - WebFinger (acct: and actor-URL resources, the instance actor, CORS *) - host-meta, NodeInfo discovery and 2.1 (counts users sharing) - /users/<name>: the Person actor for ActivityPub clients, a redirect to the UI profile page for browsers (for any name, so redirects don't reveal accounts); outbox/followers/following collections - /actor: the instance Application actor - Inboxes accept (202) and count deliveries; size-limited; processing arrives in phase 2. Actors advertise manual approval until then. - Unknown and non-sharing users get byte-identical 404s; all IDs come from FEDERATION_BASE_URL, never the request - Federation metrics: lookups, sharing changes, inbox deliveries - scrobbler.__version__ joins the core's public surface for NodeInfo Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
e890568c54
commit
ce39e8f865
6 files changed
+365
-1
No files matched your search
@@ -27,4 +27,7 @@ def init_app(app: Flask) -> None:
|
||||
if not config.enabled:
|
||||
return
|
||||
log.info("federation enabled: handles @user@%s, actors at %s", config.domain, config.base_url)
|
||||
# Phase 1 onwards registers routes, event receivers and worker tasks here.
|
||||
|
||||
from scrobbler.federation import web
|
||||
|
||||
app.register_blueprint(web.bp)
|
||||
Reference in new issue
Block a user