From 70c1f96959e0b008df2c02e61c125b5093195c63 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 27 Mar 2024 04:46:57 +0100 Subject: [PATCH] fix: maybe fix for expanding addressings --- src/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index 1f8806c5..bce4be6c 100644 --- a/src/server.rs +++ b/src/server.rs @@ -1,7 +1,7 @@ use std::{str::Utf8Error, sync::Arc}; use openssl::rsa::Rsa; -use sea_orm::{ColumnTrait, Condition, DatabaseConnection, DbErr, EntityTrait, QueryFilter, SelectColumns, Set}; +use sea_orm::{ColumnTrait, Condition, DatabaseConnection, DbErr, EntityTrait, QueryFilter, QuerySelect, SelectColumns, Set}; use crate::{activitypub::PUBLIC_TARGET, dispatcher::Dispatcher, fetcher::Fetcher, model}; @@ -140,6 +140,7 @@ impl Context { targets.remove(i); model::relation::Entity::find() .filter(Condition::all().add(model::relation::Column::Following.eq(uid.to_string()))) + .select_only() .select_column(model::relation::Column::Follower) .into_tuple::() .all(self.db())