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

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

xf_phantom

Well-known member
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
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom