From 0c6be216b7799c0f9a3b486fddbe9c7308596546 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 26 Dec 2024 16:21:11 +0100 Subject: [PATCH] fix: add published field while selecting objects --- upub/core/src/selector/query.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upub/core/src/selector/query.rs b/upub/core/src/selector/query.rs index 8fdf63f..4667773 100644 --- a/upub/core/src/selector/query.rs +++ b/upub/core/src/selector/query.rs @@ -58,6 +58,11 @@ impl Query { select = select.select_column_as(col, format!("{}{}", model::object::Entity.table_name(), col.to_string())); } + select = select.select_column_as( + model::addressing::Column::Published, + format!("{}{}", model::addressing::Entity.table_name(), model::addressing::Column::Published.to_string()) + ); + if let Some(uid) = my_id { select = select .join(