Solved Forum type filters not applied to API thread requests

This topic has been solved
M

mattrogowski

Guest
If you make an API call to read threads within a forum, the forum type handler filters don't get applied. So if you have a question forum and requested /api/forums/12/threads?solved=1 the filter isn't applied and all threads are returned.

I'm not sure if this is an intentional decision or a bug, but it only needs 2 lines to fix, within XF\Api\ControllerPlugin\Thread::applyThreadListFilters():

PHP:

$filters = $forum->TypeHandler->getForumFilterInput($forum, $this->request...

Read more

Continue reading...