Skip to content

Commit cda44ca

Browse files
committed
Outbox pagination
1 parent a73bfea commit cda44ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bot-impl.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ export class BotImpl<TContextData> implements Bot<TContextData> {
134134
.setOutboxDispatcher(
135135
"/ap/actor/{identifier}/outbox",
136136
this.dispatchOutbox.bind(this),
137-
);
137+
)
138+
.setFirstCursor(this.getOutboxFirstCursor.bind(this))
139+
.setCounter(this.countOutbox.bind(this));
138140
this.federation.setObjectDispatcher(
139141
Create,
140142
"/ap/create/{id}",
@@ -228,6 +230,7 @@ export class BotImpl<TContextData> implements Bot<TContextData> {
228230
sharedInbox: ctx.getInboxUri(),
229231
}),
230232
followers: ctx.getFollowersUri(identifier),
233+
outbox: ctx.getOutboxUri(identifier),
231234
publicKey: keyPairs[0].cryptographicKey,
232235
assertionMethods: keyPairs.map((pair) => pair.multikey),
233236
});

0 commit comments

Comments
 (0)