Make initial News loading faster

This commit is contained in:
Bruno Bernardino
2025-10-01 14:17:39 +01:00
parent adde693585
commit 1dcbf529a3
4 changed files with 20 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ export const handler: Handlers<Data, FreshContextState> = {
return new Response('Redirect', { status: 303, headers: { 'Location': `/dashboard` } });
}
const userArticles = await ArticleModel.list(context.state.user.id);
const userArticles = await ArticleModel.listUnread(context.state.user.id);
return await context.render({ userArticles });
},