[COMPONENT][Language] Fix collection query build event incorrectly not setting 'actor_language' join

Thanks to tsmethurst <tobi.smethurst@protonmail.com> for finding the error
This commit is contained in:
Hugo Sales 2022-10-19 22:39:17 +01:00
parent 46ff8aacd2
commit 5cbb1627f2
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -123,7 +123,7 @@ class Language extends Component
$note_qb->leftJoin('Component\Language\Entity\Language', 'note_actor_language', Expr\Join::WITH, 'note_actor_language.id = actor_language.language_id');
}
$actor_aliases = $note_qb->getAllAliases();
$actor_aliases = $actor_qb->getAllAliases();
if (!\in_array('actor_language', $actor_aliases)) {
$actor_qb->leftJoin('Component\Language\Entity\ActorLanguage', 'actor_language', Expr\Join::WITH, 'actor.id = actor_language.actor_id');
}