fix: maybe fix for expanding addressings

This commit is contained in:
əlemi 2024-03-27 04:46:57 +01:00
parent 746c5e5921
commit 70c1f96959
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,7 +1,7 @@
use std::{str::Utf8Error, sync::Arc}; use std::{str::Utf8Error, sync::Arc};
use openssl::rsa::Rsa; 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}; use crate::{activitypub::PUBLIC_TARGET, dispatcher::Dispatcher, fetcher::Fetcher, model};
@ -140,6 +140,7 @@ impl Context {
targets.remove(i); targets.remove(i);
model::relation::Entity::find() model::relation::Entity::find()
.filter(Condition::all().add(model::relation::Column::Following.eq(uid.to_string()))) .filter(Condition::all().add(model::relation::Column::Following.eq(uid.to_string())))
.select_only()
.select_column(model::relation::Column::Follower) .select_column(model::relation::Column::Follower)
.into_tuple::<String>() .into_tuple::<String>()
.all(self.db()) .all(self.db())