From ab91a4c7bcc3cf3df3a3e8a56623ca3f6ad7d51b Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 26 Apr 2024 13:48:57 +0200 Subject: [PATCH] fix: your inbox contains posts by you --- src/routes/activitypub/user/inbox.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/activitypub/user/inbox.rs b/src/routes/activitypub/user/inbox.rs index 84e4e8a2..418a225d 100644 --- a/src/routes/activitypub/user/inbox.rs +++ b/src/routes/activitypub/user/inbox.rs @@ -35,7 +35,10 @@ pub async fn page( crate::server::builders::paginate( url!(ctx, "/users/{id}/inbox/page"), - Condition::all().add(model::addressing::Column::Actor.eq(uid)), + Condition::any() + .add(model::addressing::Column::Actor.eq(uid)) + .add(model::object::Column::AttributedTo.eq(uid)) + .add(model::activity::Column::Actor.eq(uid)), ctx.db(), page, )