feat: add visible flag for works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user