diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 747ff493..8c48482c 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -713,7 +713,7 @@ class ModelSearchMessage extends Model { public function is_message_spam($id = 0) { $spam = 0; - if($id > 0) { + if($id > 0 && DEFAULT_RETENTION > 30) { $query = $this->db->query("SELECT spam FROM " . TABLE_META . " WHERE id=?", array($id)); if(isset($query->row['spam'])) { $spam = $query->row['spam']; }