diff --git a/upub/routes/src/activitypub/actor/likes.rs b/upub/routes/src/activitypub/actor/likes.rs index d4920b2..c93aad0 100644 --- a/upub/routes/src/activitypub/actor/likes.rs +++ b/upub/routes/src/activitypub/actor/likes.rs @@ -31,9 +31,9 @@ pub async fn page( let (limit, offset) = page.pagination(); - let items : Vec = upub::Query::objects(auth.my_id(), true) - .join(sea_orm::JoinType::InnerJoin, upub::model::like::Relation::Objects.def()) - .join(sea_orm::JoinType::InnerJoin, upub::model::activity::Relation::Likes.def()) + let items : Vec = upub::Query::objects(None, true) + .join(sea_orm::JoinType::InnerJoin, upub::model::object::Relation::Likes.def()) + .join(sea_orm::JoinType::InnerJoin, upub::model::like::Relation::Activities.def()) .filter(auth.filter_activities()) .filter(upub::model::like::Column::Actor.eq(user.internal)) .order_by_desc(upub::model::like::Column::Published)