Help the user configure Fedify inbox listeners.
Walk through:
- Calling
setInboxListeners(inboxPath, sharedInboxPath?)on theFederation/FederationBuilder. - Chaining
.on(ActivityType, handler)for each activity type to handle (Follow,Create,Undo,Like,Announce, etc.). - Adding
.onError(handler)for error logging. - Optionally adding
.onUnverifiedActivity(handler)if the user needs to inspect activities that failed signature verification. - Using
.withIdempotency(strategy)to avoid duplicate processing. - Noting that activity types with no registered handler receive HTTP 202
and are logged as unsupported: add a catch-all on the base
Activityclass if needed.
Reference: https://fedify.dev/manual/inbox