Users can ignore each others' post now
This commit is contained in:
@@ -63,7 +63,7 @@ if (!defined('SMF'))
|
||||
// The central part of the board - topic display.
|
||||
function Display()
|
||||
{
|
||||
global $scripturl, $txt, $db_prefix, $modSettings, $context, $settings, $options, $sourcedir;
|
||||
global $scripturl, $txt, $db_prefix, $modSettings, $context, $settings, $options, $sourcedir, $mongodb;
|
||||
global $user_info, $ID_MEMBER, $board_info, $topic, $board, $attachments, $messages_request;
|
||||
|
||||
// What are you gonna display if these are empty?!
|
||||
@@ -76,6 +76,9 @@ function Display()
|
||||
else
|
||||
loadTemplate('Display');
|
||||
|
||||
$ignores = $mongodb->rock->ignorelists->findOne(array('user' => (int) $ID_MEMBER), array ("ignores" => 1));
|
||||
$ignores == NULL ? $context['ignore_list'] = array() : $context['ignore_list'] = $ignores['ignores'];
|
||||
|
||||
// Find the previous or next topic. Make a fuss if there are no more.
|
||||
if (isset($_REQUEST['prev_next']) && ($_REQUEST['prev_next'] == 'prev' || $_REQUEST['prev_next'] == 'next'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user