[COMPONENT][FreeNetwork] Restore Galaxy feed

This commit is contained in:
2022-01-10 10:17:05 +00:00
parent f40eb3955f
commit 1056bc661f
5 changed files with 13 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ class Collection extends Controller
public function query(string $query, ?string $locale = null, ?Actor $actor = null)
{
$actor ??= Common::actor();
$locale ??= $actor?->getTopLanguage()?->getLocale() ?? Common::currentLanguage()->getLocale();
$locale ??= Common::currentLanguage()->getLocale();
return CollectionModule::query($query, $this->int('page') ?? 1, $locale, $actor);
}
}