Commit f817af7f authored by Hyeonseo Kim's avatar Hyeonseo Kim
Browse files

docs: add note about setActorDispatcher in webfinger.md

parent 890cb9ed
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ federation.setWebFingerLinksDispatcher(async (ctx, _resource) => {
    return [
      {
        rel: "http://ostatus.org/schema/1.0/subscribe",
        template: "https://your-domain.com/authorize_interaction?uri={uri}"
        template: "https://example.com/authorize_interaction?uri={uri}"
      }
    ];
  }
@@ -170,6 +170,14 @@ The WebFinger links dispatcher receives two parameters:
> by the `Federation.fetch()` method. You don't need to manually handle this
> route.

> [!NOTE]
> WebFinger responses can also be customized through 
> `~Federatable.setActorDispatcher()` without using 
> `~Federatable.setWebFingerLinksDispatcher()`. When an actor is configured,
> Fedify automatically includes standard ActivityPub links in the WebFinger 
> response. See the [WebFinger links section](./actor.md#webfinger-links) 
> in the Actor manual for details.

WebFinger lookups
-----------------