From 629990fee88715b91f40ca2cfbb596aaf189e66d Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 19 Apr 2024 04:57:06 +0200 Subject: [PATCH] fix: find objects not activities --- src/routes/activitypub/object/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/activitypub/object/mod.rs b/src/routes/activitypub/object/mod.rs index d83ddf6..a626d12 100644 --- a/src/routes/activitypub/object/mod.rs +++ b/src/routes/activitypub/object/mod.rs @@ -20,7 +20,7 @@ pub async fn view( ctx.oid(id.clone()) }; - let result = model::addressing::Entity::find_activities() + let result = model::addressing::Entity::find_objects() .filter(model::object::Column::Id.eq(&oid)) .filter(auth.filter_condition()) .into_model::()