[COMPONENT][Collection][Feed][Attachment][Feed][Language][Tag] Refactor and consolidate Search and Feed query mechanisms into Collection. Remame 'onSearch' events to 'onCollectionQuery'

This commit is contained in:
2022-01-08 15:10:39 +00:00
parent 57604b3851
commit c835fc6aca
7 changed files with 144 additions and 144 deletions

View File

@@ -7,7 +7,7 @@ namespace Component\Collection\Util\Controller;
use App\Core\Controller;
use App\Entity\Actor;
use App\Util\Common;
use Component\Feed\Feed;
use Component\Collection\Collection as CollectionModule;
class Collection extends Controller
{
@@ -15,6 +15,6 @@ class Collection extends Controller
{
$actor ??= Common::actor();
$locale ??= $actor?->getTopLanguage()?->getLocale();
return Feed::query($query, $this->int('page') ?? 1, $locale, $actor);
return CollectionModule::query($query, $this->int('page') ?? 1, $locale, $actor);
}
}