fix: added 500 post limit to sidebar

This commit is contained in:
2026-04-04 22:01:10 +02:00
parent 989efeaf25
commit 5239c7bee3
3 changed files with 17 additions and 1 deletions

View File

@@ -847,9 +847,11 @@ impl BdsApp {
&project.id,
)
.unwrap_or(0) as usize;
self.sidebar_posts = bds_core::db::queries::post::list_posts_by_project(
self.sidebar_posts = bds_core::db::queries::post::list_posts_by_project_limited(
db.conn(),
&project.id,
500,
0,
)
.unwrap_or_default();
}