From 37a812f3c6c33eb9adf285331cb829611a787437 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 28 Jun 2024 03:03:49 +0200 Subject: [PATCH] fix: actor outbox should include viewed posts --- upub/routes/src/activitypub/actor/outbox.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upub/routes/src/activitypub/actor/outbox.rs b/upub/routes/src/activitypub/actor/outbox.rs index 949f707f..dd8d6968 100644 --- a/upub/routes/src/activitypub/actor/outbox.rs +++ b/upub/routes/src/activitypub/actor/outbox.rs @@ -23,7 +23,10 @@ pub async fn page( upub::url!(ctx, "/actors/{id}/outbox/page"), Condition::all() .add(auth.filter_activities()) - .add(model::activity::Column::Actor.eq(&uid)), + .add(Condition::any() + .add(model::activity::Column::Actor.eq(&uid)) + .add(model::object::Column::AttributedTo.eq(&uid)) + ), ctx.db(), page, auth.my_id(),