forked from alemi/upub
fix: show own activities/objects
This commit is contained in:
parent
66f36ce71b
commit
2ba96e802e
1 changed files with 4 additions and 1 deletions
|
@ -22,9 +22,12 @@ impl Identity {
|
||||||
let base_cond = Condition::any().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC));
|
let base_cond = Condition::any().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC));
|
||||||
match self {
|
match self {
|
||||||
Identity::Anonymous => base_cond,
|
Identity::Anonymous => base_cond,
|
||||||
Identity::Local(uid) => base_cond.add(model::addressing::Column::Actor.eq(uid)),
|
|
||||||
Identity::Remote(server) => base_cond.add(model::addressing::Column::Server.eq(server)),
|
Identity::Remote(server) => base_cond.add(model::addressing::Column::Server.eq(server)),
|
||||||
// TODO should we allow all users on same server to see? or just specific user??
|
// TODO should we allow all users on same server to see? or just specific user??
|
||||||
|
Identity::Local(uid) => base_cond
|
||||||
|
.add(model::addressing::Column::Actor.eq(uid))
|
||||||
|
.add(model::activity::Column::Actor.eq(uid))
|
||||||
|
.add(model::object::Column::AttributedTo.eq(uid)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue