Unverified Commit ab5891c9 authored by Hong Minhee's avatar Hong Minhee
Browse files
parent 1d26571c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -41,9 +41,18 @@ To be released.
    a path as <code>`${string}{handle}${string}`</code> instead of `string`
    so that it is more type-safe.

 -  Added generalized object dispatchers.  [[#33]]

     -  Added `Federation.setObjectDispatcher()` method.
     -  Added `ObjectDispatcher` type.
     -  Added `ObjectAuthorizePredicate` type.
     -  Added `Context.getObjectUri()` method.
     -  Added `RequestContext.getObject()` method.

[public addressing]: https://www.w3.org/TR/activitypub/#public-addressing
[authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch
[LogTape]: https://github.com/dahlia/logtape
[#33]: https://github.com/dahlia/fedify/issues/33


Version 0.6.1
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ export default defineConfig({
          { text: "Inbox listeners", link: "/manual/inbox.md" },
          { text: "Sending activities", link: "/manual/send.md" },
          { text: "Collections", link: "/manual/collections.md" },
          { text: "Object dispatcher", link: "/manual/object.md" },
          { text: "Access control", link: "/manual/access-control.md" },
          { text: "NodeInfo", link: "/manual/nodeinfo.md" },
          { text: "Pragmatics", link: "/manual/pragmatics.md" },
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ framework.
 -  [Inbox listeners](./manual/inbox.md)
 -  [Send activities](./manual/send.md)
 -  [Collections](./manual/collections.md)
 -  [Object](./manual/object.md)
 -  [Access control](./manual/access-control.md)
 -  [NodeInfo](./manual/nodeinfo.md)
 -  [Pragmatics](./manual/pragmatics.md)
+4 −3
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@ description: >-
  who can access your resources.  This section explains how to use the access
  control system.
prev:
  text: Collections
  link: ./collections.md
  text: Object dispatcher
  link: ./object.md
next:
  text: NodeInfo
  link: ./nodeinfo.md
@@ -35,7 +35,8 @@ Enabling authorized fetch

To enable authorized fetch, you need to register an `AuthorizePredicate`
callback with `ActorCallbackSetters.authorize()` or
`CollectionCallbackSetters.authorize()`.  The below example shows how to enable
`CollectionCallbackSetters.authorize()`, or `ObjectAuthorizePredicate` callback
with `ObjectCallbackSetters.authorize()`.  The below example shows how to enable
authorized fetch for the actor dispatcher:

~~~~ typescript{8-10}
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@ prev:
  text: Sending activities
  link: ./send.md
next:
  text: Access control
  link: ./access-control.md
  text: Object dispatcher
  link: ./object.md
---

Collections
Loading