forked from alemi/upub
fix: public posts have NULL actor
This commit is contained in:
parent
b36e9f5bf5
commit
417ab22a7b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ pub enum Identity {
|
||||||
|
|
||||||
impl Identity {
|
impl Identity {
|
||||||
pub fn filter_condition(&self) -> Condition {
|
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 {
|
match self {
|
||||||
Identity::Anonymous => base_cond,
|
Identity::Anonymous => base_cond,
|
||||||
Identity::Remote { internal, .. } => base_cond.add(model::addressing::Column::Instance.eq(*internal)),
|
Identity::Remote { internal, .. } => base_cond.add(model::addressing::Column::Instance.eq(*internal)),
|
||||||
|
|
Loading…
Reference in a new issue