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';
}
Upvote
0