• 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

xf_phantom

Well-known member
#1
PHP:
      $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