adding FirstPost to API results

Status
This content is read-only, or is not open for further replies.

bob2bob

Guest
offline
We're extending the API so that we can grab watched threads and we'd like to also include the first_post from each thread.

You can see what I'm doing here:
PHP:

Code:
class DNWatchedThreads extends AbstractController
{
    public function actionGet()
    {
        $page = $this->filterPage();
        $perPage = 10;
 
        $visitor = \XF::visitor();
 
        /** @var \XF\Repository\Thread $threadRepo */
        $threadRepo = $this->repository('XF:Thread');
        $threadFinder =...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom