From 417ab22a7b1f4565f0246a774e6d3072fac718f3 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 19:53:51 +0200 Subject: [PATCH] fix: public posts have NULL actor --- src/server/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/auth.rs b/src/server/auth.rs index cacf2cca..1516bbc0 100644 --- a/src/server/auth.rs +++ b/src/server/auth.rs @@ -21,7 +21,7 @@ pub enum Identity { impl Identity { pub fn filter_condition(&self) -> Condition { - let base_cond = Condition::any().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC)); + let base_cond = Condition::any().add(model::addressing::Column::Actor.is_null()); match self { Identity::Anonymous => base_cond, Identity::Remote { internal, .. } => base_cond.add(model::addressing::Column::Instance.eq(*internal)),