feat: add visible flag for works

This commit is contained in:
kdletters
2026-05-27 19:30:10 +08:00
parent a7bba70ca5
commit 8e96c8a67c
29 changed files with 198 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ pub fn bark_battle_gallery_view(ctx: &AnonymousViewContext) -> Vec<BarkBattleGal
.bark_battle_published_config()
.by_bark_battle_published_owner_user_id()
.filter(""..)
.filter(|row| row.visible)
.filter_map(|row| match build_bark_battle_gallery_view_row(ctx, &row) {
Ok(item) => Some(item),
Err(error) => {
@@ -260,6 +261,7 @@ fn publish_bark_battle_work_tx(
created_at: published_at,
updated_at: published_at,
published_at,
visible: true,
};
let mut published = published;
match ctx