1
0
Fork 0
forked from alemi/upub

fix: public posts have NULL actor

This commit is contained in:
əlemi 2024-05-27 19:53:51 +02:00
parent b36e9f5bf5
commit 417ab22a7b
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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)),