diff --git a/src/server/context.rs b/src/server/context.rs index 8e19f538..e310010d 100644 --- a/src/server/context.rs +++ b/src/server/context.rs @@ -186,6 +186,7 @@ impl Context { .filter(model::object::Column::Internal.eq(internal)) .select_only() .select_column(model::object::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some() @@ -198,6 +199,7 @@ impl Context { .filter(model::activity::Column::Internal.eq(internal)) .select_only() .select_column(model::activity::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some() @@ -208,9 +210,10 @@ impl Context { pub async fn is_local_internal_actor(&self, internal: i64) -> crate::Result { Ok( model::actor::Entity::find() - .filter(model::activity::Column::Internal.eq(internal)) + .filter(model::actor::Column::Internal.eq(internal)) .select_only() .select_column(model::actor::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some()