diff --git a/src/routes/activitypub/context.rs b/src/routes/activitypub/context.rs index 4820a5d..e29024e 100644 --- a/src/routes/activitypub/context.rs +++ b/src/routes/activitypub/context.rs @@ -45,7 +45,7 @@ pub async fn page( .order_by(model::addressing::Column::Published, Order::Desc) .limit(limit) .offset(offset) - .into_model::() + .into_model::() .all(ctx.db()) .await?; @@ -55,7 +55,7 @@ pub async fn page( offset, limit, items .into_iter() - .filter_map(|x| Some(x.object?.ap())) + .map(|x| x.ap()) .collect() ).ld_context() )) diff --git a/src/routes/activitypub/object/replies.rs b/src/routes/activitypub/object/replies.rs index c506df9..d55a610 100644 --- a/src/routes/activitypub/object/replies.rs +++ b/src/routes/activitypub/object/replies.rs @@ -45,7 +45,7 @@ pub async fn page( .order_by(model::addressing::Column::Published, Order::Desc) .limit(limit) .offset(offset) - .into_model::() + .into_model::() .all(ctx.db()) .await?; @@ -55,7 +55,7 @@ pub async fn page( offset, limit, items .into_iter() - .filter_map(|x| Some(x.object?.ap())) + .map(|x| x.ap()) .collect() ).ld_context() ))