From 2ba96e802ea370a2af14431738a5d100950e3d70 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 24 Apr 2024 04:08:07 +0200 Subject: [PATCH] fix: show own activities/objects --- src/server/auth.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/auth.rs b/src/server/auth.rs index 60095249..38b54772 100644 --- a/src/server/auth.rs +++ b/src/server/auth.rs @@ -22,9 +22,12 @@ impl Identity { let base_cond = Condition::any().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC)); match self { 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)), // 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)), } }