Skip to content

Commit

Permalink
Limited inbox to last 50 activities
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Sep 21, 2024
1 parent 9e9321f commit 5665854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export async function inboxHandler(
// Prepare the items for the response
const items: unknown[] = [];

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

Expand Down

0 comments on commit 5665854

Please sign in to comment.