Toby Zerner 51d6a23b83 Refactor ListPostsController, make filtering extensible
It became apparent in https://github.com/flarum/core/issues/319#issuecomment-170558573 that there was no way for extensions to add filter parameters to the /api/posts endpoint (e.g. /api/posts?filter[mentioned]=1). Simply adding an event to modify the `$where` array severely limits how much can be done with the query. This commit refactors the controller so that filters are applied directly to the query Builder, and exposes the Builder in a new `ConfigurePostsQuery` event.
2016-01-31 17:06:38 +10:30
Description
Simple forum software for building great communities.
202 MiB
Languages
PHP 60.7%
TypeScript 26%
JavaScript 7.9%
Less 4.4%
Blade 0.8%
Other 0.2%