1
0
mirror of https://github.com/flarum/core.git synced 2025-02-26 12:15:32 +01:00
Toby Zerner abc794c966 Change the way we fetch multiple posts by ID
JSON-API specifies that multiple resources should be fetched with a
comma-separated list of IDs, i.e. discussions/1,2,3,4. But this is
problematic because if we do a findQuery with only one ID, then a
single object will come back from the API where the serializer is
expecting an array containing a single object.

Instead, I’ve just implemented an ids “filter” on the discussions index
API route (which is the default way that the adapter finds multiple
IDs.)
2015-01-16 17:26:17 +10:30
..
2015-01-07 17:25:40 +10:30
2015-01-01 20:08:38 +10:30
2015-01-01 20:08:38 +10:30
2015-01-07 17:25:41 +10:30
2015-01-03 21:51:47 +10:30
2015-01-03 21:51:47 +10:30
2015-01-03 12:26:22 +10:30