1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Small Code change suggestion for ControllerPublic_FindNew::findNewPosts

Discussion in 'Closed Suggestions' started by xf_phantom, Dec 16, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

          $fetchOptions $limitOptions + array(
    'order' => 'last_post_date',
    'orderDirection' => 'desc',
    'watchUserId' => $userId,
    'forumWatchUserId' => $userId,
    'join' => XenForo_Model_Thread::FETCH_FORUM_OPTIONS

    $threadIds array_keys($threadModel->getThreads(array(
    'last_post_date' => array('>'XenForo_Application::$time 86400 $days),
    'not_discussion_type' => 'redirect',
    'deleted' => false,
    'moderated' => false,
    'find_new' => true,
    'watch_only' => $watched
    ), $fetchOptions));

    $searchType 'recent-posts';
    Please create own methods returning the fetchConditions and fetchOptions to be able to manipulate it before getThreads is being called

Share This Page