From a7cbbddc611963900f8d33048723075313b32f93 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 27 Dec 2024 02:24:16 +0100 Subject: [PATCH] fix: must include the column im ordering for..... --- upub/routes/src/activitypub/actor/likes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upub/routes/src/activitypub/actor/likes.rs b/upub/routes/src/activitypub/actor/likes.rs index c93aad0..6d2bd33 100644 --- a/upub/routes/src/activitypub/actor/likes.rs +++ b/upub/routes/src/activitypub/actor/likes.rs @@ -1,5 +1,5 @@ use axum::extract::{Path, Query, State}; -use sea_orm::{ColumnTrait, QueryFilter, QueryOrder, QuerySelect, RelationTrait}; +use sea_orm::{ColumnTrait, QueryFilter, QueryOrder, QuerySelect, RelationTrait, SelectColumns}; use upub::{model, selector::{RichFillable, RichObject}, Context}; @@ -36,6 +36,7 @@ pub async fn page( .join(sea_orm::JoinType::InnerJoin, upub::model::like::Relation::Activities.def()) .filter(auth.filter_activities()) .filter(upub::model::like::Column::Actor.eq(user.internal)) + .select_column(upub::model::like::Column::Published) .order_by_desc(upub::model::like::Column::Published) .limit(limit) .offset(offset)