diff --git a/upub/routes/src/activitypub/actor/outbox.rs b/upub/routes/src/activitypub/actor/outbox.rs index dd8d6968..aeba8578 100644 --- a/upub/routes/src/activitypub/actor/outbox.rs +++ b/upub/routes/src/activitypub/actor/outbox.rs @@ -19,14 +19,18 @@ pub async fn page( AuthIdentity(auth): AuthIdentity, ) -> crate::ApiResult> { let uid = ctx.uid(&id); - crate::builders::paginate_feed( - upub::url!(ctx, "/actors/{id}/outbox/page"), - Condition::all() - .add(auth.filter_activities()) - .add(Condition::any() + let mut filter = Condition::all() + .add( + Condition::any() .add(model::activity::Column::Actor.eq(&uid)) .add(model::object::Column::AttributedTo.eq(&uid)) - ), + ); + if !auth.is(&uid) { + filter = filter.add(auth.filter_activities()); + } + crate::builders::paginate_feed( + upub::url!(ctx, "/actors/{id}/outbox/page"), + filter, ctx.db(), page, auth.my_id(),