From 5c01432a71b92d766ff39b4675b12dc67aa0282a Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 15 Jan 2025 01:27:10 +0100 Subject: [PATCH] fix: remove distinct --- upub/routes/src/activitypub/object/likes.rs | 1 - upub/routes/src/activitypub/object/shares.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/upub/routes/src/activitypub/object/likes.rs b/upub/routes/src/activitypub/object/likes.rs index 86e5ecd..021d792 100644 --- a/upub/routes/src/activitypub/object/likes.rs +++ b/upub/routes/src/activitypub/object/likes.rs @@ -39,7 +39,6 @@ pub async fn page( let (limit, offset) = page.pagination(); let mut select = upub::model::like::Entity::find() - .distinct() .join(sea_orm::JoinType::InnerJoin, upub::model::like::Relation::Activities.def()) .join(sea_orm::JoinType::InnerJoin, upub::model::activity::Relation::Addressing.def()) .filter(auth.filter_activities()) diff --git a/upub/routes/src/activitypub/object/shares.rs b/upub/routes/src/activitypub/object/shares.rs index d56f6f5..f6075a2 100644 --- a/upub/routes/src/activitypub/object/shares.rs +++ b/upub/routes/src/activitypub/object/shares.rs @@ -39,7 +39,6 @@ pub async fn page( let (limit, offset) = page.pagination(); let mut select = upub::model::announce::Entity::find() - .distinct() .join(sea_orm::JoinType::InnerJoin, upub::model::announce::Relation::Activities.def()) .join(sea_orm::JoinType::InnerJoin, upub::model::activity::Relation::Addressing.def()) .filter(auth.filter_activities())