From 05758c999fc991622613cd332437116521b35da7 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Thu, 25 Nov 2021 02:07:12 +0000 Subject: [PATCH] [ENTITY][Actor] fix typo in findRelativeActors query --- src/Entity/Actor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/Actor.php b/src/Entity/Actor.php index b1cfd441aa..fe2b704721 100644 --- a/src/Entity/Actor.php +++ b/src/Entity/Actor.php @@ -334,8 +334,8 @@ class Actor extends Entity fn () => DB::dql( <<<'EOF' select a from actor a where - a.id in (select fa.subscibed from subscription fa join actor aa with fa.subscibed = aa.id where fa.subsciber = :actor_id and aa.nickname = :nickname) or - a.id in (select fb.subsciber from subscription fb join actor ab with fb.subsciber = ab.id where fb.subscibed = :actor_id and ab.nickname = :nickname) or + a.id in (select fa.subscribed from subscription fa join actor aa with fa.subscribed = aa.id where fa.subscriber = :actor_id and aa.nickname = :nickname) or + a.id in (select fb.subscriber from subscription fb join actor ab with fb.subscriber = ab.id where fb.subscribed = :actor_id and ab.nickname = :nickname) or a.nickname = :nickname EOF, ['nickname' => $nickname, 'actor_id' => $this->getId()],