diff --git a/upub/routes/src/activitypub/object/context.rs b/upub/routes/src/activitypub/object/context.rs index a6b0b969..1ed0a94e 100644 --- a/upub/routes/src/activitypub/object/context.rs +++ b/upub/routes/src/activitypub/object/context.rs @@ -28,14 +28,18 @@ pub async fn page( ) -> crate::ApiResult> { let context = ctx.oid(&id); - let mut filter = Condition::all() - .add(auth.filter()) - .add(model::object::Column::Context.eq(context)); + let mut filter = Condition::any() + .add(auth.filter()); if let Identity::Local { ref id, .. } = auth { filter = filter.add(model::object::Column::AttributedTo.eq(id)); } + filter = Condition::all() + .add(model::object::Column::Context.eq(context)) + .add(filter); + + crate::builders::paginate_feed( upub::url!(ctx, "/objects/{id}/context/page"), filter,