Skip to content

Commit 5665854

Browse files
committed
Limited inbox to last 50 activities
1 parent 9e9321f commit 5665854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ export async function inboxHandler(
584584
// Prepare the items for the response
585585
const items: unknown[] = [];
586586

587-
for (const item of inbox) {
587+
for (const item of inbox.slice(-50)) {
588588
try {
589589
const builtInboxItem = await buildActivity(item, globaldb, apCtx, liked);
590590

0 commit comments

Comments
 (0)