/**
* Gets the data for the global forum RSS feed.
*
* @return XenForo_ControllerResponse_Abstract
*/
public function getGlobalForumRss()
{
$threadModel = $this->_getThreadModel();
$visitor = XenForo_Visitor::getInstance();
$prefix = $this->_input->filterSingle('prefix', XenForo_Input::STRING);
$threadsPerPage = max(1, XenForo_Application::get('options')->discussionsPerPage);
$autoReadDate = XenForo_Application::$time - (XenForo_Application::get('options')->readMarkingDataLifetime * 86400);
$threads = $threadModel->getThreads(
array(
'find_new' => true,
'last_post_date' => array('>', $autoReadDate),
'not_discussion_type' => 'redirect',
'title' => ($prefix ? array($prefix, 'r') : '')
),
array(
'limit' => $threadsPerPage * 3, // to filter
'order' => 'last_post_date',
'join' =>
XenForo_Model_Thread::FETCH_FORUM | XenForo_Model_Thread::FETCH_FORUM_OPTIONS |
XenForo_Model_Thread::FETCH_USER | XenForo_Model_Thread::FETCH_FIRSTPOST,
'permissionCombinationId' => $visitor['permission_combination_id']
)
);