MDL-60039 messaging: global search index using timeread
This commit is contained in:
committed by
David Monllao
parent
32f9550e85
commit
8744db903b
@@ -47,8 +47,8 @@ class message_received extends base_message {
|
||||
// We don't want to index messages received from noreply and support users.
|
||||
$params = array('modifiedfrom' => $modifiedfrom, 'noreplyuser' => \core_user::NOREPLY_USER,
|
||||
'supportuser' => \core_user::SUPPORT_USER);
|
||||
return $DB->get_recordset_select('message_read', 'timecreated >= :modifiedfrom AND
|
||||
useridto != :noreplyuser AND useridto != :supportuser', $params, 'timecreated ASC');
|
||||
return $DB->get_recordset_select('message_read', 'timeread >= :modifiedfrom AND
|
||||
useridto != :noreplyuser AND useridto != :supportuser', $params, 'timeread ASC');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,8 +46,8 @@ class message_sent extends base_message {
|
||||
// We don't want to index messages sent by noreply and support users.
|
||||
$params = array('modifiedfrom' => $modifiedfrom, 'noreplyuser' => \core_user::NOREPLY_USER,
|
||||
'supportuser' => \core_user::SUPPORT_USER);
|
||||
return $DB->get_recordset_select('message_read', 'timecreated >= :modifiedfrom AND
|
||||
useridfrom != :noreplyuser AND useridfrom != :supportuser', $params, 'timecreated ASC');
|
||||
return $DB->get_recordset_select('message_read', 'timeread >= :modifiedfrom AND
|
||||
useridfrom != :noreplyuser AND useridfrom != :supportuser', $params, 'timeread ASC');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user