From d7ff6014c48d77e452ac2076ab0a5f7456f9cbf9 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 19 Apr 2024 05:05:26 +0200 Subject: [PATCH] fix: select_object doesnt return embeddedactivity --- src/routes/activitypub/context.rs | 4 ++-- src/routes/activitypub/object/replies.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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() ))