1
0
mirror of https://github.com/flarum/core.git synced 2025-05-05 23:15:22 +02:00
Toby Zerner 2018e424ec 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
2016-01-19 19:07:06 +10:30
2015-10-22 12:25:22 +10:30
2016-01-20 22:14:08 +01:00
2015-12-05 22:31:33 +10:30
2015-07-05 21:25:09 +09:30
2016-01-28 08:06:33 +01:00
2016-01-19 17:00:10 +10:30
2015-11-01 16:00:25 +10:30
2016-01-02 07:08:58 +01:00
2015-11-01 16:00:25 +10:30

Flarum Core

This repository contains Flarum's core code. If you want to set up a forum, visit the main Flarum repository.

Contributing

Flarum is open-source and we would love your help building it! Please read the Contributing Guide to learn how you can help.

Description
No description provided
Readme 118 MiB
Languages
PHP 65.5%
JavaScript 14.2%
TypeScript 13.9%
Less 5.5%
Blade 0.7%
Other 0.2%